@Ittiz, Thanks for your clear explanation. Unfortunally I can not get it work.
Below what I filled-in for notifications to one android device with domoticz lite. The log file does not give any error, but no notification arrived to mobile phone
I have updated to script as below to monitor whether the else if commend is working corrrectly. This is the case
commandArray = {}
if devicechanged['$S2_SingleClick'] then if otherdevices['Tuinverlichting']=='Off' then commandArray['Tuinverlichting']='100'and print('Tuinverlichting aan ...
Thanks for your reply. The above script works partially if the "tuinverlichting" is on Then the "Tuinverlichting will switch off when pressing the $S2 Singleclick button
When pressing again it will not toggle on again Looks like the part after else is not working