@thatdoogieguy I have tried to import templates you posted here, but I’m getting this error in zigbee2mqtt - used for both switches
Publish 'set' 'state' to 'Ložnice vypínač' failed: 'Error: Command 0x847127fffe94eee6/2 genOnOff.off({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Timeout - 33270 - 2 - 35 - 6 - 11 after 10000ms)'
@Underknowledge posted this on discord, does not work (when modified for my switches etc.) - maybe it is the same errors
alias: Theoretical automation to group some switchen
trigger:
- platform: state
entity_id:
- switch.1
condition:
- condition: template
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
- service_template: switch.turn_{{ trigger.to_state.state }}
target:
entity_id:
- switch.1
@glenhart same
string does not match pattern of DEPRECATED^
seems that it should work when replacing service_template with service removes the complaint in the code validator, but switches do not sync
For some reason this also does not work for me altrought the logic in the code makes sense ![]()
this also does not work for me, so i guess time to learn ![]()
I guess the core issue in my case is
2022-09-04 17:31:16Publish 'set' 'state' to 'Ložnice vypínač' failed: 'Error: Command 0x847127fffe94eee6/2 genOnOff.off({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Timeout - 33270 - 2 - 87 - 6 - 11 after 10000ms)'
So I have paired the switch again and now it works, let’s see how long it will last

