yyyyyeeeessssssssss!!! Jetzt hab ich's hinbekommen...
Vielen Dank euch beiden!!!
yyyyyeeeessssssssss!!! Jetzt hab ich's hinbekommen...
Vielen Dank euch beiden!!!
Vielen Dank für die Erklärung, mit Deiner Hilfe habe ich es jetzt hinbekommen und wieder etwas gelernt, was ich für die nächste Sache nutzen kann.
kurzes Feedback falls für jemanden interessant - funktioniert wie geplant. Eve Extend einfach über die home App entkoppeln, die vorher gepairten Geräte bleiben auf dem Extend erhalten und er kann danach mit dem Adapter gekoppelt werden und die Geräte tauchen dann unter den Objekten im HomeKit-controller auf.
@mickym perfekt - eine letzte minimale Optimierung ist mir gerade noch aufgefallen...
Ich habe zwecks Organisation und Übersicht bei meinen Zigbee Kontaktsensoren im Namen immer Contact mit am Schluss stehen. Das hätte ich in der Aufzählung gerne entfernt - wie bekomme ich das noch integriert also ->
friendly_name.slice(0, -8)
Wenn ich das direkt dranhänge
payload.*[payload.contact=false].item.friendly_name.slice(0, -8)~>$join(", ")
bekomme ich einen Fehler
Invalid JSONata expression: Attempted to invoke a non-function
Kann ich mich für Deine Hilfe irgendwo mit einer Kaffeespende revanchieren?
Danke & Gruß
@mickym vielen lieben Dank für Deine Mühe!!! - hab ich importiert und funktioniert wie gewünscht.
In dem Fall bin ich komplett deiner Meinung mit dem Verzicht auf die Function node, ich dachte das wird etwas umfangreicher was die Anzahl der nodes angeht und da ist mir dann normalerweise eine Function node immer lieber. Aber in dem Beispiel sehe ich das genauso wie Du.
Beim Thema JSONATA muss ich mich mal einarbeiten, ich glaube das ist genau das was ich für ein paar Themen brauchen kann als Ansatz - Danke dafür.
Hast Du ggf. noch einen kurzen Tipp für mich, wenn ich die geöffneten Fenster nicht in einem Array ausgegeben haben möchte, sondern in einem einzigen getrennt durch Kommas? Muss ich das Array danach nochmal anfassen und zusammenfassen? Das müsste dann doch bestimmt mit JSONATA auch schon in einem Aufwasch direkt funktionieren, oder??
Viele Grüße
@mickym Wow - vielen Dank. Probiere ich die nächsten Tage aus und melde mich wieder. So, oder so schon mal vielen Dank
@mickym Kein Thema - vielen lieben Dank für die superschnelle Hilfestellung
{"0x54ef44100025b758":{"item":{"definition":{"description":"Door and window sensor E1","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"category":"diagnostic","description":"Indicates if the battery of this device is almost empty","label":"Battery low","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAABhXpUWHRSYXcgcHJvZmlsZSB0eXBlIHhtcAAAOI2VVFtugzAQ/N9T9Ahmn/ZxKNh/lfrZ43fXUB4BFBUrJLFnZ2ZHtuHn6xs+4pFSgCbLNFrW2ZLOKsY6YIr/Omk1ijWaEXVQ1qaoQuMyv6EbIibYaXzyM0ok8ywJE5M280JMpFgp9Q9STSOmGG4BnVxpFGQG1hf9ZTE8ZGMfiUbXbNYfrOYgrF3CsNFAJQY2oEToE+jveSHxb7LitG7bMs4hEMu7l1dHzCpgpOQTpbdWPIXqDleA54Ku7UmEQw/iRHQcluHQVBDpXVvdU93j9t+en87e8FoTrQ09xHa1vjXwJzByL7dwLN4+LR1Q9aQm2Fmfge8EJAtClDh8iiQ2hUh3OkoE9A65S8CDRrkvvJFYkfCs8ZBT7KCism6PrQ4iqFNOD8B3AiBJswZRW85OpyFeNqQYrtGfSC/tOQf8l+TJGWysN+GKN+h7nm88XNBwhL+eJWzH03Q9TMebAHZwXAassdgpLrdUrMAvbhQcoxzYWVIAAAABb3JOVAHPoneaAAB8D0lEQVR42u39eZxkWVbfCf7Ove+ZmZvvsWVk5FK5VGVVVgIFimJRCYmIGWZKI0GxqD3YVUULFd108xH6SCC1+EjhMZ8ZNDNaWqNGS43UCKmhYTwQtARCIBpFIJUaWmQAVUVlLVmVS2XGHh6+mbuZvffuPf3He8/8mbmZufkabua/b34s3cOW5+7v3XfP75x77jkAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhB...","model":"MCCGQ14LM","options":[],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","genPowerCfg","genIdentify","ssIasZone","manuSpecificLumi"],"output":["genIdentify","genOta"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Küche FensterR Contact","ieee_address":"0x54ef44100025b758","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.magnet.acn001","network_address":1783,"power_source":"Battery","supported":true,"type":"EndDevice","current_values":{"battery":89,"battery_low":false,"contact":true,"last_seen":"2025-02-18T16:46:47+01:00","linkquality":98,"power_outage_count":0,"tamper":false,"voltage":2983},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":89,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/Küche FensterR Contact","selector":"zigbee2mqtt_KcheFensterRContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":89,"StatusLowBattery":0}},"payload":{"battery":89,"battery_low":false,"contact":true,"last_seen":"2025-02-18T16:46:47+01:00","linkquality":98,"power_outage_count":0,"tamper":false,"voltage":2983},"format":{}},"0x54ef44100025b3ff":{"item":{"definition":{"description":"Door and window sensor E1","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"category":"diagnostic","description":"Indicates if the battery of this device is almost empty","label":"Battery low","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAABhXpUWHRSYXcgcHJvZmlsZSB0eXBlIHhtcAAAOI2VVFtugzAQ/N9T9Ahmn/ZxKNh/lfrZ43fXUB4BFBUrJLFnZ2ZHtuHn6xs+4pFSgCbLNFrW2ZLOKsY6YIr/Omk1ijWaEXVQ1qaoQuMyv6EbIibYaXzyM0ok8ywJE5M280JMpFgp9Q9STSOmGG4BnVxpFGQG1hf9ZTE8ZGMfiUbXbNYfrOYgrF3CsNFAJQY2oEToE+jveSHxb7LitG7bMs4hEMu7l1dHzCpgpOQTpbdWPIXqDleA54Ku7UmEQw/iRHQcluHQVBDpXVvdU93j9t+en87e8FoTrQ09xHa1vjXwJzByL7dwLN4+LR1Q9aQm2Fmfge8EJAtClDh8iiQ2hUh3OkoE9A65S8CDRrkvvJFYkfCs8ZBT7KCism6PrQ4iqFNOD8B3AiBJswZRW85OpyFeNqQYrtGfSC/tOQf8l+TJGWysN+GKN+h7nm88XNBwhL+eJWzH03Q9TMebAHZwXAassdgpLrdUrMAvbhQcoxzYWVIAAAABb3JOVAHPoneaAAB8D0lEQVR42u39eZxkWVbfCf7Ove+ZmZvvsWVk5FK5VGVVVgIFimJRCYmIGWZKI0GxqD3YVUULFd108xH6SCC1+EjhMZ8ZNDNaWqNGS43UCKmhYTwQtARCIBpFIJUaWmQAVUVlLVmVS2XGHh6+mbuZvffuPf3He8/8mbmZufkabua/b34s3cOW5+7v3XfP75x77jkAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhB...","model":"MCCGQ14LM","options":[],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","genPowerCfg","genIdentify","ssIasZone","manuSpecificLumi"],"output":["genIdentify","genOta"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Küche FensterL Contact","ieee_address":"0x54ef44100025b3ff","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.magnet.acn001","network_address":30725,"power_source":"Battery","supported":true,"type":"EndDevice","current_values":{"battery":78,"battery_low":false,"contact":true,"last_seen":"2025-02-18T16:53:33+01:00","linkquality":76,"power_outage_count":1,"tamper":false,"voltage":2967},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":78,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/Küche FensterL Contact","selector":"zigbee2mqtt_KcheFensterLContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":78,"StatusLowBattery":0}},"payload":{"battery":78,"battery_low":false,"contact":true,"last_seen":"2025-02-18T16:53:33+01:00","linkquality":76,"power_outage_count":1,"tamper":false,"voltage":2967},"format":{}},"0x00158d0006bd1963":{"item":{"definition":{"description":"Door and window sensor","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Temperature of the device","label":"Device temperature","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Indicates how many times the sensor was triggered (since last scheduled report)","label":"Trigger count","name":"trigger_count","property":"trigger_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAABhXpUWHRSYXcgcHJvZmlsZSB0eXBlIHhtcAAAOI2VVFtugzAQ/N9T9Ahmn/ZxKNh/lfrZ43fXUB4BFBUrJLFnZ2ZHtuHn6xs+4pFSgCbLNFrW2ZLOKsY6YIr/Omk1ijWaEXVQ1qaoQuMyv6EbIibYaXzyM0ok8ywJE5M280JMpFgp9Q9STSOmGG4BnVxpFGQG1hf9ZTE8ZGMfiUbXbNYfrOYgrF3CsNFAJQY2oEToE+jveSHxb7LitG7bMs4hEMu7l1dHzCpgpOQTpbdWPIXqDleA54Ku7UmEQw/iRHQcluHQVBDpXVvdU93j9t+en87e8FoTrQ09xHa1vjXwJzByL7dwLN4+LR1Q9aQm2Fmfge8EJAtClDh8iiQ2hUh3OkoE9A65S8CDRrkvvJFYkfCs8ZBT7KCism6PrQ4iqFNOD8B3AiBJswZRW85OpyFeNqQYrtGfSC/tOQf8l+TJGWysN+GKN+h7nm88XNBwhL+eJWzH03Q9TMebAHZwXAassdgpLrdUrMAvbhQcoxzYWVIAAAABb3JOVAHPoneaAAB8D0lEQVR42u39eZxkWVbfCf7Ove+ZmZvvsWVk5FK5VGVVVgIFimJRCYmIGWZKI0GxqD3YVUULFd108xH6SCC1+EjhMZ8ZNDNaWqNGS43UCKmhYTwQtARCIBpFIJUaWmQAVUVlLVmVS2XGHh6+mbuZvffuPf3He8/8mbmZufkabua/b34s3cOW5+7v3XfP75x77jkAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhB...","model":"MCCGQ11LM","options":[{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","label":"Device temperature calibration","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"}],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Studio FensterR Contact","ieee_address":"0x00158d0006bd1963","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.sensor_magnet.aq2","network_address":39306,"power_source":"Battery","supported":true,"type":"EndDevice","current_values":{"battery":100,"contact":true,"device_temperature":16,"last_seen":"2025-02-18T16:47:16+01:00","linkquality":105,"power_outage_count":73,"trigger_count":0,"voltage":3005},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/Studio FensterR Contact","selector":"zigbee2mqtt_StudioFensterRContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"payload":{"battery":100,"contact":true,"device_temperature":16,"last_seen":"2025-02-18T16:47:16+01:00","linkquality":105,"power_outage_count":73,"trigger_count":0,"voltage":3005},"format":{}},"0x00158d00019f3819":{"item":{"definition":{"description":"Door and window sensor","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Temperature of the device","label":"Device temperature","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Indicates how many times the sensor was triggered (since last scheduled report)","label":"Trigger count","name":"trigger_count","property":"trigger_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAABhXpUWHRSYXcgcHJvZmlsZSB0eXBlIHhtcAAAOI2VVFtugzAQ/N9T9Ahmn/ZxKNh/lfrZ43fXUB4BFBUrJLFnZ2ZHtuHn6xs+4pFSgCbLNFrW2ZLOKsY6YIr/Omk1ijWaEXVQ1qaoQuMyv6EbIibYaXzyM0ok8ywJE5M280JMpFgp9Q9STSOmGG4BnVxpFGQG1hf9ZTE8ZGMfiUbXbNYfrOYgrF3CsNFAJQY2oEToE+jveSHxb7LitG7bMs4hEMu7l1dHzCpgpOQTpbdWPIXqDleA54Ku7UmEQw/iRHQcluHQVBDpXVvdU93j9t+en87e8FoTrQ09xHa1vjXwJzByL7dwLN4+LR1Q9aQm2Fmfge8EJAtClDh8iiQ2hUh3OkoE9A65S8CDRrkvvJFYkfCs8ZBT7KCism6PrQ4iqFNOD8B3AiBJswZRW85OpyFeNqQYrtGfSC/tOQf8l+TJGWysN+GKN+h7nm88XNBwhL+eJWzH03Q9TMebAHZwXAassdgpLrdUrMAvbhQcoxzYWVIAAAABb3JOVAHPoneaAAB8D0lEQVR42u39eZxkWVbfCf7Ove+ZmZvvsWVk5FK5VGVVVgIFimJRCYmIGWZKI0GxqD3YVUULFd108xH6SCC1+EjhMZ8ZNDNaWqNGS43UCKmhYTwQtARCIBpFIJUaWmQAVUVlLVmVS2XGHh6+mbuZvffuPf3He8/8mbmZufkabua/b34s3cOW5+7v3XfP75x77jkAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhB...","model":"MCCGQ11LM","options":[{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","label":"Device temperature calibration","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"}],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Bad Fenster Contact","ieee_address":"0x00158d00019f3819","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.sensor_magnet.aq2","network_address":30025,"power_source":"Battery","supported":true,"type":"EndDevice","current_values":{"battery":100,"contact":true,"device_temperature":18,"last_seen":"2025-02-18T17:08:11+01:00","linkquality":160,"power_outage_count":241,"trigger_count":0,"voltage":3005},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/Bad Fenster Contact","selector":"zigbee2mqtt_BadFensterContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"payload":{"battery":100,"contact":true,"device_temperature":18,"last_seen":"2025-02-18T17:08:11+01:00","linkquality":160,"power_outage_count":241,"trigger_count":0,"voltage":3005},"format":{}},"0x00158d0006b7d36c":{"item":{"definition":{"description":"Door and window sensor","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Temperature of the device","label":"Device temperature","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Indicates how many times the sensor was triggered (since last scheduled report)","label":"Trigger count","name":"trigger_count","property":"trigger_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAABhXpUWHRSYXcgcHJvZmlsZSB0eXBlIHhtcAAAOI2VVFtugzAQ/N9T9Ahmn/ZxKNh/lfrZ43fXUB4BFBUrJLFnZ2ZHtuHn6xs+4pFSgCbLNFrW2ZLOKsY6YIr/Omk1ijWaEXVQ1qaoQuMyv6EbIibYaXzyM0ok8ywJE5M280JMpFgp9Q9STSOmGG4BnVxpFGQG1hf9ZTE8ZGMfiUbXbNYfrOYgrF3CsNFAJQY2oEToE+jveSHxb7LitG7bMs4hEMu7l1dHzCpgpOQTpbdWPIXqDleA54Ku7UmEQw/iRHQcluHQVBDpXVvdU93j9t+en87e8FoTrQ09xHa1vjXwJzByL7dwLN4+LR1Q9aQm2Fmfge8EJAtClDh8iiQ2hUh3OkoE9A65S8CDRrkvvJFYkfCs8ZBT7KCism6PrQ4iqFNOD8B3AiBJswZRW85OpyFeNqQYrtGfSC/tOQf8l+TJGWysN+GKN+h7nm88XNBwhL+eJWzH03Q9TMebAHZwXAassdgpLrdUrMAvbhQcoxzYWVIAAAABb3JOVAHPoneaAAB8D0lEQVR42u39eZxkWVbfCf7Ove+ZmZvvsWVk5FK5VGVVVgIFimJRCYmIGWZKI0GxqD3YVUULFd108xH6SCC1+EjhMZ8ZNDNaWqNGS43UCKmhYTwQtARCIBpFIJUaWmQAVUVlLVmVS2XGHh6+mbuZvffuPf3He8/8mbmZufkabua/b34s3cOW5+7v3XfP75x77jkAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhB...","model":"MCCGQ11LM","options":[{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","label":"Device temperature calibration","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"}],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","genIdentify","65535","genOnOff"],"output":["genBasic","genGroups","65535"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Schlafzimmer Fenster Contact","ieee_address":"0x00158d0006b7d36c","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.sensor_magnet.aq2","network_address":61288,"power_source":"Battery","supported":true,"type":"EndDevice","current_values":{"battery":100,"contact":true,"device_temperature":18,"last_seen":"2025-02-18T17:23:11+01:00","linkquality":109,"power_outage_count":103,"trigger_count":0,"voltage":3025},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/Schlafzimmer Fenster Contact","selector":"zigbee2mqtt_SchlafzimmerFensterContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"payload":{"battery":100,"contact":true,"device_temperature":18,"last_seen":"2025-02-18T17:23:11+01:00","linkquality":109,"power_outage_count":103,"trigger_count":0,"voltage":3025},"format":{}},"0x00158d0006b7ccb9":{"item":{"date_code":"20161128","definition":{"description":"Door and window sensor","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Temperature of the device","label":"Device temperature","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Indicates how many times the sensor was triggered (since last scheduled report)","label":"Trigger count","name":"trigger_count","property":"trigger_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAABhXpUWHRSYXcgcHJvZmlsZSB0eXBlIHhtcAAAOI2VVFtugzAQ/N9T9Ahmn/ZxKNh/lfrZ43fXUB4BFBUrJLFnZ2ZHtuHn6xs+4pFSgCbLNFrW2ZLOKsY6YIr/Omk1ijWaEXVQ1qaoQuMyv6EbIibYaXzyM0ok8ywJE5M280JMpFgp9Q9STSOmGG4BnVxpFGQG1hf9ZTE8ZGMfiUbXbNYfrOYgrF3CsNFAJQY2oEToE+jveSHxb7LitG7bMs4hEMu7l1dHzCpgpOQTpbdWPIXqDleA54Ku7UmEQw/iRHQcluHQVBDpXVvdU93j9t+en87e8FoTrQ09xHa1vjXwJzByL7dwLN4+LR1Q9aQm2Fmfge8EJAtClDh8iiQ2hUh3OkoE9A65S8CDRrkvvJFYkfCs8ZBT7KCism6PrQ4iqFNOD8B3AiBJswZRW85OpyFeNqQYrtGfSC/tOQf8l+TJGWysN+GKN+h7nm88XNBwhL+eJWzH03Q9TMebAHZwXAassdgpLrdUrMAvbhQcoxzYWVIAAAABb3JOVAHPoneaAAB8D0lEQVR42u39eZxkWVbfCf7Ove+ZmZvvsWVk5FK5VGVVVgIFimJRCYmIGWZKI0GxqD3YVUULFd108xH6SCC1+EjhMZ8ZNDNaWqNGS43UCKmhYTwQtARCIBpFIJUaWmQAVUVlLVmVS2XGHh6+mbuZvffuPf3He8/8mbmZufkabua/b34s3cOW5+7v3XfP75x77jkAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhB...","model":"MCCGQ11LM","options":[{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","label":"Device temperature calibration","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"}],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","genIdentify","65535","genOnOff"],"output":["genBasic","genGroups","65535"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Lina Fenster Contact","ieee_address":"0x00158d0006b7ccb9","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.sensor_magnet.aq2","network_address":30017,"power_source":"Battery","software_build_id":"3000-0001","supported":true,"type":"EndDevice","current_values":{"battery":100,"contact":true,"device_temperature":23,"last_seen":"2025-02-18T17:00:27+01:00","linkquality":160,"power_outage_count":24,"trigger_count":0,"voltage":3005},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/Lina Fenster Contact","selector":"zigbee2mqtt_LinaFensterContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"payload":{"battery":100,"contact":true,"device_temperature":23,"last_seen":"2025-02-18T17:00:27+01:00","linkquality":160,"power_outage_count":24,"trigger_count":0,"voltage":3005},"format":{}},"0x00158d0001dd431f":{"item":{"date_code":"20161128","definition":{"description":"Door and window sensor","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Temperature of the device","label":"Device temperature","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Indicates how many times the sensor was triggered (since last scheduled report)","label":"Trigger count","name":"trigger_count","property":"trigger_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAABhXpUWHRSYXcgcHJvZmlsZSB0eXBlIHhtcAAAOI2VVFtugzAQ/N9T9Ahmn/ZxKNh/lfrZ43fXUB4BFBUrJLFnZ2ZHtuHn6xs+4pFSgCbLNFrW2ZLOKsY6YIr/Omk1ijWaEXVQ1qaoQuMyv6EbIibYaXzyM0ok8ywJE5M280JMpFgp9Q9STSOmGG4BnVxpFGQG1hf9ZTE8ZGMfiUbXbNYfrOYgrF3CsNFAJQY2oEToE+jveSHxb7LitG7bMs4hEMu7l1dHzCpgpOQTpbdWPIXqDleA54Ku7UmEQw/iRHQcluHQVBDpXVvdU93j9t+en87e8FoTrQ09xHa1vjXwJzByL7dwLN4+LR1Q9aQm2Fmfge8EJAtClDh8iiQ2hUh3OkoE9A65S8CDRrkvvJFYkfCs8ZBT7KCism6PrQ4iqFNOD8B3AiBJswZRW85OpyFeNqQYrtGfSC/tOQf8l+TJGWysN+GKN+h7nm88XNBwhL+eJWzH03Q9TMebAHZwXAassdgpLrdUrMAvbhQcoxzYWVIAAAABb3JOVAHPoneaAAB8D0lEQVR42u39eZxkWVbfCf7Ove+ZmZvvsWVk5FK5VGVVVgIFimJRCYmIGWZKI0GxqD3YVUULFd108xH6SCC1+EjhMZ8ZNDNaWqNGS43UCKmhYTwQtARCIBpFIJUaWmQAVUVlLVmVS2XGHh6+mbuZvffuPf3He8/8mbmZufkabua/b34s3cOW5+7v3XfP75x77jkAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhB...","model":"MCCGQ11LM","options":[{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","label":"Device temperature calibration","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"}],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","genIdentify","65535","genOnOff"],"output":["genBasic","genGroups","65535"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"WC Fenster Contact","ieee_address":"0x00158d0001dd431f","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.sensor_magnet.aq2","network_address":50753,"power_source":"Battery","software_build_id":"3000-0001","supported":true,"type":"EndDevice","current_values":{"battery":100,"contact":true,"device_temperature":12,"last_seen":"2025-02-18T16:47:38+01:00","linkquality":160,"power_outage_count":55,"trigger_count":0,"voltage":3045},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/WC Fenster Contact","selector":"zigbee2mqtt_WCFensterContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"payload":{"battery":100,"contact":true,"device_temperature":12,"last_seen":"2025-02-18T16:47:38+01:00","linkquality":160,"power_outage_count":55,"trigger_count":0,"voltage":3045},"format":{}},"0x00158d0001ddef66":{"item":{"definition":{"description":"Door and window sensor","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Temperature of the device","label":"Device temperature","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Indicates how many times the sensor was triggered (since last scheduled report)","label":"Trigger count","name":"trigger_count","property":"trigger_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAABhXpUWHRSYXcgcHJvZmlsZSB0eXBlIHhtcAAAOI2VVFtugzAQ/N9T9Ahmn/ZxKNh/lfrZ43fXUB4BFBUrJLFnZ2ZHtuHn6xs+4pFSgCbLNFrW2ZLOKsY6YIr/Omk1ijWaEXVQ1qaoQuMyv6EbIibYaXzyM0ok8ywJE5M280JMpFgp9Q9STSOmGG4BnVxpFGQG1hf9ZTE8ZGMfiUbXbNYfrOYgrF3CsNFAJQY2oEToE+jveSHxb7LitG7bMs4hEMu7l1dHzCpgpOQTpbdWPIXqDleA54Ku7UmEQw/iRHQcluHQVBDpXVvdU93j9t+en87e8FoTrQ09xHa1vjXwJzByL7dwLN4+LR1Q9aQm2Fmfge8EJAtClDh8iiQ2hUh3OkoE9A65S8CDRrkvvJFYkfCs8ZBT7KCism6PrQ4iqFNOD8B3AiBJswZRW85OpyFeNqQYrtGfSC/tOQf8l+TJGWysN+GKN+h7nm88XNBwhL+eJWzH03Q9TMebAHZwXAassdgpLrdUrMAvbhQcoxzYWVIAAAABb3JOVAHPoneaAAB8D0lEQVR42u39eZxkWVbfCf7Ove+ZmZvvsWVk5FK5VGVVVgIFimJRCYmIGWZKI0GxqD3YVUULFd108xH6SCC1+EjhMZ8ZNDNaWqNGS43UCKmhYTwQtARCIBpFIJUaWmQAVUVlLVmVS2XGHh6+mbuZvffuPf3He8/8mbmZufkabua/b34s3cOW5+7v3XfP75x77jkAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhB...","model":"MCCGQ11LM","options":[{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","label":"Device temperature calibration","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"}],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Dachbodenfenster Contact","ieee_address":"0x00158d0001ddef66","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.sensor_magnet.aq2","network_address":42946,"power_source":"Battery","supported":true,"type":"EndDevice","current_values":{"battery":100,"contact":true,"device_temperature":13,"last_seen":"2025-02-18T17:26:36+01:00","linkquality":109,"power_outage_count":450,"trigger_count":0,"voltage":3005},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/Dachbodenfenster Contact","selector":"zigbee2mqtt_DachbodenfensterContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"payload":{"battery":100,"contact":true,"device_temperature":13,"last_seen":"2025-02-18T17:26:36+01:00","linkquality":109,"power_outage_count":450,"trigger_count":0,"voltage":3005},"format":{}},"0x00158d0001ddc8e5":{"item":{"date_code":"20161128","definition":{"description":"Door and window sensor","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"category":"diagnostic","description":"Temperature of the device","label":"Device temperature","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Indicates how many times the sensor was triggered (since last scheduled report)","label":"Trigger count","name":"trigger_count","property":"trigger_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"MCCGQ11LM","options":[{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","label":"Device temperature calibration","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"}],"supports_ota":false,"vendor":"Aqara"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","genIdentify","65535","genOnOff"],"output":["genBasic","genGroups","65535"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Studio FensterL Contact","ieee_address":"0x00158d0001ddc8e5","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.sensor_magnet.aq2","network_address":16276,"power_source":"Battery","software_build_id":"3000-0001","supported":true,"type":"EndDevice","current_values":{"battery":100,"contact":true,"device_temperature":12,"last_seen":"2025-02-18T16:32:29+01:00","linkquality":76,"power_outage_count":160,"trigger_count":0,"voltage":3125},"homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"format":{}},"topic":"zigbee2mqtt/Studio FensterL Contact","selector":"zigbee2mqtt_StudioFensterLContact","homekit":{"ContactSensor":{"ContactSensorState":0},"ContactSensor_Inverse":{"ContactSensorState":1},"Battery":{"BatteryLevel":100,"StatusLowBattery":0}},"payload":{"battery":100,"contact":true,"device_temperature":12,"last_seen":"2025-02-18T16:32:29+01:00","linkquality":76,"power_outage_count":160,"trigger_count":0,"voltage":3125},"format":{}}}
Hoffe das passt so.
VG
Hallo zusammen,
ich benötige bitte mal einen Gedankenanstoss bei folgendem Vorhaben.
Wenn ich das Haus verlasse bzw. abends wenn ich schlafen gehe, möchte ich eine Benachrichtigung mit dem Status der Fenster und Türen bekommen.
Also Türen geschlossen, Fenster Bad auf etc..
Meine Tür- und Fensterkontakte sind über zigbee2mqtt node eingebunden - hier gibt es eine Gruppe Fenster und eine Gruppe Türen die ich in der node definiert habe.
Ich kann den Status der jeweiligen Gruppen über die get zigbee2mqtt node abfragen und erhalte eine payload mit den einzelnen Kontaktsensoren und den jeweiligen Stati.
Wie kann ich jetzt eine Kontrolle der jeweiligen Sensoren auf den Status von msg.payload.*.payload.contact === false prüfen - also das ich nicht für jeden Sensor eine separate Überprüfung machen muss?
Den Platzhalter bzw. * funktioniert in der function node ja nicht - muss ich das über eine loop Funktion in der function Node abwickeln, oder wie komme ich meinem Ziel näher? Ich würde es auch Platzgründen gerne über eine function Node abwickeln.
In Blockly hatte ich das damals so geregelt
Hab gegoogelt und ein paar Beispiele probiert die aber nicht zum Ziel führen mangels korrekter Herangehensweise oder syntax - bin was javascript angeht nicht der Experte, kleinere Grundlagen bekomme ich hin bzw. hab ich mir in Eigenregie selbst beigebracht.
Danke für Tipps.
@crunchip OK, dann ist es klar warum es nicht geklappt hat - hatte ich nicht ganz verstanden. Dachte das wäre wie beim node-red Adapter - jetzt hab ich's aber hinbekommen.
Vielen Dank
Bzw. Verständnisfrage - Dein Adapter reicht aus, oder? - ich muss mir nicht noch den regulären zigbee2mqtt installieren und Dein Adapter überführt die Datenpunkte "nur" auf dem offiziellen Adapter zigbee2mqtttin den iobroker???
@arteck
vielen Dank fürs schnelle Feedback.
Bedeutet ich brauche die yaml nicht und ich lösche die erstellten /data/config.yaml Verzeichnisse & Dateien wieder - die Adaptereinstellungen reichen aus?
Hab auf Deiner Adapterseite issue 376auch mal mein Problem mit Log gepostet - kannst Du da evtl. erkennen wo der Hund begraben liegt?
Bin sowohl mit Dummy mqtt server wie auch dem iobroker.mqtt Adapter als Serverkonfiguration gescheitert - auch hier hat das ändern des Ports nicht geholfen.
Gruß
Hallo zusammen,
ich hoffe ich bin im richtigen Unterforum bzw. Bereich mit meiner Anfrage - bitte ansonsten verschieben.
Meine iobroker Installation läuft auf macOS - es gibt also ein paar Unterschiede zu den Linux Installationen (iobroker Pfad /usr/local/iobroker nicht /opt/iobroker etc etc.).
Ich würde gerne den ioBroker.zigbee2mqtt Adapter nutzen, bekomme aber das Webinterface nicht zum laufen - auch nicht wenn ich den Port ändere - kein Webinterface und der Adapter bleibt gelb.
Ich schätze es liegt an der configuration.yaml die u.U. im falschen Verzeichnis abgelegt ist und deswegen nicht gefunden wird.
Ich habe diverse Foreneinträge durchgeforstet aber keinen Hinweis zum entsprechenden Pfad für macOS gefunden.
Versucht habe ich sowohl /usr/local/zigbee2mqtt/data und auch /usr/local/iobroker/node_modules/iobroker.zigbee2mqtt/data - also Verzeichnis erstellt und dann dort die configuration.yaml inkl. Eintrag "frontend: true" abgelegt
Bin über Tipps und Hinweise dankbar
Gruß
Hallo zusammen,
meine iob Installation läuft auf einem Mac mini mit macOS 14.1 Sonoma.
Soweit läuft alles, nur beim web Adapter & dem socket.io Adapter kann ich die Updates nicht durchführen.
Die Updates werden gestartet und mit "Exit with Code 0" beendet - verschwinden dann kurz aus der Übersicht der updatebaren Adapter, werden aber beim refresh der Seite wieder angezeigt als verfügbare Updates.
Alle anderen Adapter konnte ich bisher ohne Probleme updaten, nur die beiden bereiten Probleme
Habe das Update auch mal direkt über das Terminal angestossen mit
iob upgrade web --debug
Da kommen folgende zusätzliche Infos
Installing iobroker.web@6.1.10... (System call)
npm ERR! code EEXIST
npm ERR! syscall rename
npm ERR! path /Users/smarthome/.npm/_cacache/tmp/6d7c89f0
npm ERR! dest /Users/smarthome/.npm/_cacache/content-v2/sha512/5d/d5/3992707b48e2183a97c31bcce7b32c265dca42f2c9ad6f3f6a8da41f9b92e12dfea0425ab4f83a3ee04ca3b2d3edf27728d889110ce37fdda2fdfbe9ac88
npm ERR! errno EEXIST
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/blob: EACCES: permission denied, rename '/Users/smarthome/.npm/_cacache/tmp/6d7c89f0' -> '/Users/smarthome/.npm/_cacache/content-v2/sha512/5d/d5/3992707b48e2183a97c31bcce7b32c265dca42f2c9ad6f3f6a8da41f9b92e12dfea0425ab4f83a3ee04ca3b2d3edf27728d889110ce37fdda2fdfbe9ac88'
npm ERR! File exists: /Users/smarthome/.npm/_cacache/content-v2/sha512/5d/d5/3992707b48e2183a97c31bcce7b32c265dca42f2c9ad6f3f6a8da41f9b92e12dfea0425ab4f83a3ee04ca3b2d3edf27728d889110ce37fdda2fdfbe9ac88
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
Ich finde im angegebenen Verzeichnis die angegebene Datei 3992707b48e2183a97c31bcce7b32c265dca42f2c9ad6f3f6a8da41f9b92e12dfea0425ab4f83a3ee04ca3b2d3edf27728d889110ce37fdda2fdfbe9ac88 nicht.
Wenn der Vorschlag mit --force hilft, wie kann ich den im Terminal angeben, oder bezieht der sich nur auf npm Install und nicht auf iob upgrade??
Kann mir jemand auf die Sprünge helfen, was ich tun kann?
Danke & Gruß
NPM 9.8.1
Node 18.18.2
js-controller 5.0.16