Problem with Toggle Switch Script
Posted: Sunday 11 October 2020 23:31
Hello All,
I've several KAKU switch senders wich used for switching directly Tasmota Switches and Kaku receivers ON and OFF. Even there is made a group with 6 lamps wich have to be on by pressing a button on a KAKU remotecontrol or a KAKU swich sender behind a normal swich in a wall mounted.
For single Tasmota switches i'll get it working, (Switch on the KAKU remote, Domoticz app and the wall mounted KAKU sender)
For a single KAKU receivers i'll get it working, (Switch on the KAKU remote, Domoticz app and the wall mounted KAKU sender)
But for a group i don't get it worked from the wall mounted KAKU sender (The Kaku remote works with ON and OFF)
below a working example,
'KL Kamer Links Schakelaar' is a KAKU sender wich sends a command In 433 Mhz to Domoticz
'22 Lamp Boven Tafel' is a KAKU receiver, wich not programmed for interacting at 'KL Kamer Links Schakelaar'
The ' AFTER 1' appending is necessary because 'KL Kamer Links Schakelaar' sends it command several time and if you don't wait a second the KAKU receiver for the lamp doesn't work because there are two commands in the 433 Mhz area atthe same time.
Below a not working example,
'KR Kamer Rechts Schakelaar' is the other switch in the same mounting, its the same KAKU sender but the command code wich send is still different.
'15 Alles Aan of Uit' is a group wich even accessable by using the KAKU remote and Domoticz App. (These options works
This script doesn't work even not if i change '15 Alles Aan of Uit' into 'Group:15 Alles Aan of Uit' or 'Scene:15 Alles Aan of Uit'' doesn't work. So ''KR Kamer Rechts Schakelaar' doesn't work...
Anyone suggestions for me to try
Thanks a lot
Rob
I've several KAKU switch senders wich used for switching directly Tasmota Switches and Kaku receivers ON and OFF. Even there is made a group with 6 lamps wich have to be on by pressing a button on a KAKU remotecontrol or a KAKU swich sender behind a normal swich in a wall mounted.
For single Tasmota switches i'll get it working, (Switch on the KAKU remote, Domoticz app and the wall mounted KAKU sender)
For a single KAKU receivers i'll get it working, (Switch on the KAKU remote, Domoticz app and the wall mounted KAKU sender)
But for a group i don't get it worked from the wall mounted KAKU sender (The Kaku remote works with ON and OFF)
below a working example,
Code: Select all
commandArray = {}
if (devicechanged['KL Kamer Links Schakelaar']) then
if (otherdevices['22 Lamp Boven Tafel']=='On') then
commandArray['22 Lamp Boven Tafel']='Off AFTER 1'
elseif (otherdevices['22 Lamp Boven Tafel']=='Off') then
commandArray['22 Lamp Boven Tafel']='On AFTER 1'
end
end
return commandArray
'22 Lamp Boven Tafel' is a KAKU receiver, wich not programmed for interacting at 'KL Kamer Links Schakelaar'
The ' AFTER 1' appending is necessary because 'KL Kamer Links Schakelaar' sends it command several time and if you don't wait a second the KAKU receiver for the lamp doesn't work because there are two commands in the 433 Mhz area atthe same time.
Below a not working example,
Code: Select all
commandArray = {}
if (devicechanged['KR Kamer Rechts Schakelaar']) then
if (otherdevices['15 Alles Aan of Uit']=='On') then
commandArray['15 Alles Aan of Uit']='Off AFTER 2'
elseif (otherdevices['15 Alles Aan of Uit']=='Off') then
commandArray['15 Alles Aan of Uit']='On AFTER 2'
end
end
return commandArray
'15 Alles Aan of Uit' is a group wich even accessable by using the KAKU remote and Domoticz App. (These options works
This script doesn't work even not if i change '15 Alles Aan of Uit' into 'Group:15 Alles Aan of Uit' or 'Scene:15 Alles Aan of Uit'' doesn't work. So ''KR Kamer Rechts Schakelaar' doesn't work...
Anyone suggestions for me to try
Thanks a lot
Rob