I use a set of rf switches with a remote control for about 10 years. Now I want to control these switches with pimatic.
3 switches are normal on-off switches. I can control these switches as usual with ON and OFF buttons of a remote control.
The 4th switch is a dimmer switch. It’s control is done with the ON and OFF buttons of the remote control too but in a very special way.
On and off of the dimmer switch is done only with the ON button of the remote control - one press of the ON button -> switch is on, next press of th ON button of remote control -> switch is off, next press -> on, next press -> off - and so on.
The OFF button of the remote control is used to control the dimming. One press of the remote OFF button starts an automatic changing of the dimming. If a lamp is connected to the dimming switch it goes from darkness to maximum brightness (in about 3 seconds) and back to darkness and this is repaeting until I press the remote OFF button again. Then the state of dimming is stored.
If I now switch with the remote ON button the switch on and off it returns always to this state of dimming. And if I want to change the state of dimming I have to use again the remote OFF button as described.
My main interest is to control the switching on and off with pimatic. The state of dimming I can further on control with the manual remote
control.
I need a configuration of a pimatic switch device which is sending the same code to switch on and to switch off.
The configuration shown below works for the 3 normal on-off-switches (with different ids, names and unit codes of course). But it does not work for the dimmer switch:
{
"id": "dimmerswitch",
"name": "Dimmer Switch",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "switch3",
"options": {
"houseCode": 16,
"unitCode": 2
}
}
]
},
Using pimatic GUI to switch on is done. But switching off with GUI starts dimming control as described above (because it’s like pressing the OFF button on the remote control). To add “state”:true to the options does not change anything.