Device Trigger for Aqara wireless mini switch #472
-
I've an Aqara wireless mini switch discovered and configured in Home Assistant and using HA automation like this example to execute actions. - id: '1632216955711'
alias: Demo Button
trigger:
- platform: device
device_id: d75e87957b2add2ae14eb58b3f89cefa
domain: homekit_controller
type: button1
subtype: single_press
condition: []
action:
- type: turn_on
device_id: ac012c8a0121594859e0894dcf4215d2
entity_id: switch.staandelampeettafel
domain: switch
- wait_template: ''
timeout: '2'
continue_on_timeout: true
- type: turn_off
device_id: ac012c8a0121594859e0894dcf4215d2
entity_id: switch.staandelampeettafel
domain: switch
mode: single This will turn on one of lights when the button is pressed a single time. Now I'm trying to create a nodered flow to do something similar, but somehow it seems that the flow is not working. NodeRed Workflow [{"id":"70c2289ef0f78e87","type":"tab","label":"Demo","disabled":false,"info":"When the Aqara wireless mini switch is a light should be turned on."},{"id":"ac82b3e9faaedac9","type":"ha-device","z":"70c2289ef0f78e87","name":"Aqara wireless mini switch","server":"6708af1e.0054d","version":0,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"inputs":0,"deviceType":"trigger","device":"d75e87957b2add2ae14eb58b3f89cefa","event":{"platform":"device","device_id":"d75e87957b2add2ae14eb58b3f89cefa","domain":"homekit_controller","type":"button1","subtype":"single_press"},"capabilities":[],"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"},{"property":"flow","propertyType":"msg","value":"","valueType":"flow"},{"property":"boolean","propertyType":"msg","value":"true","valueType":"bool"}],"x":250,"y":360,"wires":[["415967439684dee7"]]},{"id":"837c4c392f9caba9","type":"debug","z":"70c2289ef0f78e87","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":870,"y":360,"wires":[]},{"id":"415967439684dee7","type":"api-call-service","z":"70c2289ef0f78e87","name":"Staande lamp naast tafel aan","server":"6708af1e.0054d","version":3,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"light.lamp_naast_bank","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":580,"y":360,"wires":[["837c4c392f9caba9"]]},{"id":"6708af1e.0054d","type":"server","name":"Home Assistant","addon":true}] What am I doing wrong? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Are there any errors in the NR logs or debug panel? Does it say |
Beta Was this translation helpful? Give feedback.
-
Hi Jason, Last step 8 fixed it. Sorry for being such a noob on how to get this working. Thanks for helping out here. Stefan |
Beta Was this translation helpful? Give feedback.
Hi Jason,
Last step 8 fixed it.
Sorry for being such a noob on how to get this working.
Thanks for helping out here.
Stefan