Hi
have something changed in HA or Nodered so this would be the reason i get an API error It has been running for over 1 year without problems
i get
Call-service error. expected int for dictionary value @ data ‘brightness’
i cant figure out what is wrong
[{"id":"8b1d8b480d936f78","type":"server-state-changed","z":"a9420e968b280477","name":"Kitchen motion 01","server":"20501dd8.c17de2","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"binary_sensor.kit_motion_01_occupancy","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"off","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"30","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":130,"y":100,"wires":[["d603f44b01deabc8"],["d603f44b01deabc8","c3a479db066983a2"]]},{"id":"f8e977b3ee82d808","type":"api-call-service","z":"a9420e968b280477","name":"LEDS-OFF","server":"20501dd8.c17de2","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.kit_bel_count_01","light.kit_bel_count_02"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":590,"y":180,"wires":[[]]},{"id":"20e38a41b5bcee37","type":"api-call-service","z":"a9420e968b280477","name":"LEDS-ON","server":"20501dd8.c17de2","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_bel_count_01","light.kit_bel_count_02"],"data":"{\"brightness\":msg.data.attributes.brightness}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":580,"y":240,"wires":[[]]},{"id":"d603f44b01deabc8","type":"trigger","z":"a9420e968b280477","name":"","op1":"dim","op2":"off","op1type":"str","op2type":"str","duration":"60","extend":false,"overrideDelay":false,"units":"s","reset":"on","bytopic":"all","topic":"topic","outputs":2,"x":390,"y":100,"wires":[["9dae6ba4a1043a10","9ce30cfc2e0e61c3"],["f8e977b3ee82d808"]]},{"id":"c5a5a8fd38724fe7","type":"api-call-service","z":"a9420e968b280477","name":"LED-1-ON","server":"20501dd8.c17de2","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_bel_count_01"],"data":"{\"brightness\":msg.data.attributes.brightness/2}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":850,"y":120,"wires":[[]]},{"id":"9dae6ba4a1043a10","type":"api-current-state","z":"a9420e968b280477","name":"Current brightness KCL1","server":"20501dd8.c17de2","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_bel_count_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"lightBrightness","propertyType":"flow","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":630,"y":120,"wires":[["c5a5a8fd38724fe7"]]},{"id":"9ce30cfc2e0e61c3","type":"api-current-state","z":"a9420e968b280477","name":"Current brightness KCL2","server":"20501dd8.c17de2","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_bel_count_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"lightBrightness","propertyType":"flow","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":630,"y":60,"wires":[["442b98c38477b67d"]]},{"id":"442b98c38477b67d","type":"api-call-service","z":"a9420e968b280477","name":"LED-2-ON","server":"20501dd8.c17de2","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_bel_count_02"],"data":"{\"brightness\":msg.data.attributes.brightness/2}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":850,"y":60,"wires":[[]]},{"id":"c3a479db066983a2","type":"change","z":"a9420e968b280477","name":"","rules":[{"t":"set","p":"data","pt":"msg","to":"lightBrightness","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":180,"wires":[["20e38a41b5bcee37"]]},{"id":"2b1dc6109bf609eb","type":"comment","z":"a9420e968b280477","name":"Köket","info":"","x":90,"y":60,"wires":[]},{"id":"20501dd8.c17de2","type":"server","name":"Home Assistant DEC 23","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]