Hi everyone,
I spend much time trying to configure Aqara Double wall switch.
Now i have left button as switch for my light that works well, but i can't configure the right button as statelessProgrammableSwitch. When i click the right button then nothing happens.
Log:
Hi everyone, I spend much time trying to configure Aqara Double wall switch. Now i have left button as switch for my light that works well, but i can't configure the right button as statelessProgrammableSwitch. When i click the right button then nothing happens. Log:
And the configuration:
{ "type": "switch", "name": "Aqara Switch", "accessory": "mqttthing", "topics": { "getOn": { "topic": "zigbee2mqtt/0x00158d000424493a", "apply": "return JSON.parse(message).state_left === 'ON' ? true : false;" }, "setOn": { "topic": "zigbee2mqtt/0x00158d000424493a/left/set", "apply": "return JSON.stringify({state_left: (message ? \"ON\" : \"OFF\")});" }, "getOnline": { "topic": "zigbee2mqtt/0x00158d000424493a", "apply": "return JSON.parse(message).state_left === 'ON' ? true : false;" } } }, { "accessory": "mqttthing", "logMqtt": true, "type": "statelessProgrammableSwitch", "name": "Aqara Double Wall Switch", "topics": { "getSwitch": { "topic": "zigbee2mqtt/0x00158d000424493a", "apply": "return JSON.parse(message).click === 'right' ? 1 : 2;" } }, "switchValues": [ "single", "double", "long" ] },