I’m trying to flash one off my lights, but it’s failing will API error.
Seems like I’m not able to send property “flash” from NodeRed to HA. Has anyone made it work?
It works if I’m from the developer tools are trying to call service “light.turn_on” with data:
entity_id: light.lys_spillrom_taklys
flash: short
But from NodeRED it fails.
This is my call service config:
It seems like the property “flash” is not valid.
This is the debug information:
domain: "light"
service: "turn_on"
data: object
0: "{"
1: """
2: "f"
3: "l"
4: "a"
5: "s"
6: "h"
7: """
8: ":"
9: "s"
10: "h"
11: "o"
12: "r"
13: "t"
14: "}"
entity_id: "light.lys_spillrom_taklys"
Complete flow:
[{"id":"d8d8d5d3.b88fb","type":"inject","z":"cf70e5ae.0af7d8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"event\":1004}","payloadType":"json","x":570,"y":620,"wires":[["315bb662.baf30a"]]},{"id":"315bb662.baf30a","type":"switch","z":"cf70e5ae.0af7d8","name":"Get clicks","property":"payload.event","propertyType":"msg","rules":[{"t":"eq","v":"1002","vt":"str"},{"t":"eq","v":"1004","vt":"str"},{"t":"eq","v":"1006","vt":"str"},{"t":"eq","v":"1008","vt":"str"}],"checkall":"false","repair":false,"outputs":4,"x":780,"y":620,"wires":[[],["6f935438.78f7cc"],[],[]]},{"id":"6f935438.78f7cc","type":"api-call-service","z":"cf70e5ae.0af7d8","name":"Flash llight","server":"ac20270b.4d8de8","version":1,"debugenabled":true,"service_domain":"light","service":"turn_on","entityId":"light.lys_spillrom_taklys","data":"{\"flash\":short}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":950,"y":620,"wires":[[]]},{"id":"ac20270b.4d8de8","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]