Hi,
I’m trying to copy the brightness from one device to another one. It’s been an hour of trying and I keep not being able to pass the parameter to the higher level.
I’m sadly very bad with coding.
What am I doing wrong? Thanks for the help.
[{"id":"e90bf93c.3ccf88","type":"server-state-changed","z":"cbd6d85d.24f998","name":"","server":"a0eea9da.0fe1d8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"light.office_ikea_panel","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":210,"y":360,"wires":[["3b1c40d4.3f547"]]},{"id":"3b1c40d4.3f547","type":"api-current-state","z":"cbd6d85d.24f998","name":"State","server":"a0eea9da.0fe1d8","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.office_ikea_panel","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":410,"y":300,"wires":[["ccecbe5d.78f09"]]},{"id":"ccecbe5d.78f09","type":"change","z":"cbd6d85d.24f998","name":"change","rules":[{"t":"set","p":"data.brightness","pt":"msg","to":"officebrightness","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":360,"wires":[["1bb2734.f289a8d"]]},{"id":"1bb2734.f289a8d","type":"api-call-service","z":"cbd6d85d.24f998","name":"","server":"a0eea9da.0fe1d8","version":1,"debugenabled":true,"service_domain":"light","service":"turn_on","entityId":"light.office_light_1, light.office_light_2, sensor.office_sensor_3","data":"","dataType":"json","mergecontext":"officebrightness","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":730,"y":360,"wires":[["530d449b.decb0c"]]},{"id":"530d449b.decb0c","type":"debug","z":"cbd6d85d.24f998","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":910,"y":360,"wires":[]},{"id":"a0eea9da.0fe1d8","type":"server","name":"Home Assistant New","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]