Fungerer utmerket den her.
Men den sender events, så du må trigge på disse.
Bruker du Node-Red kan du importere denne:
[{"id":"4d3659659ad81942","type":"server-state-changed","z":"0481d1d9b9b1d87e","name":"Livingroom Wallswitch Action","server":"ce440416.77f1e8","version":4,"outputs":1,"for":0,"forType":"num","forUnits":"minutes","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"}],"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.zigbee_livingroom_wallswitch_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is_not","output_only_on_state_change":true,"x":620,"y":920,"wires":[["4cfb5b9adc55ecc8"]]},{"id":"4cfb5b9adc55ecc8","type":"switch","z":"0481d1d9b9b1d87e","name":"Switch Actions","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on_l1","vt":"str"},{"t":"eq","v":"off_l1","vt":"str"},{"t":"eq","v":"brightness_move_up_l1","vt":"str"},{"t":"eq","v":"brightness_move_down_l1","vt":"str"},{"t":"eq","v":"brightness_stop_l1","vt":"str"},{"t":"eq","v":"on_l2","vt":"str"},{"t":"eq","v":"off_l2","vt":"str"},{"t":"eq","v":"brightness_move_up_l2","vt":"str"},{"t":"eq","v":"brightness_move_down_l2","vt":"str"},{"t":"eq","v":"brightness_stop_l2","vt":"str"},{"t":"eq","v":"on_l3","vt":"str"},{"t":"eq","v":"off_l3","vt":"str"},{"t":"eq","v":"brightness_move_up_l3","vt":"str"},{"t":"eq","v":"brightness_move_down_l3","vt":"str"},{"t":"eq","v":"brightness_stop_l3","vt":"str"},{"t":"eq","v":"on_l4","vt":"str"},{"t":"eq","v":"off_l4","vt":"str"},{"t":"eq","v":"brightness_move_up_l4","vt":"str"},{"t":"eq","v":"brightness_move_down_l4","vt":"str"},{"t":"eq","v":"brightness_stop_l4","vt":"str"}],"checkall":"false","repair":false,"outputs":20,"x":775,"y":920,"wires":[["5b23dd782539ced5"],["50604be90b827992"],["8bb45d836b4cb11c"],["7a288fd45d0d27cc"],["cf7ae0527c612bb3"],["5b0a57b2b0729c85"],["04166aaa24e58df8"],[],[],[],[],[],[],[],[],["17bc73f26310bb03"],["8827eea195645256"],["30fad7039808adbe"],["ec746b28673cb5cd"],["5f22c01ff304b15a"]],"l":false},{"id":"ce440416.77f1e8","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]