Blockly Shelly Roller Shutter not working
Posted: Tuesday 12 May 2020 9:21
I have a shelly 2.5 connected to my sunscreen and opening/closing works fine but my blockly script isn't.
I have a simple Blockly script that just needs to do the following:
If Roller shutter is closed and (buienrader switch) is it raining = on Then Open sunscreen.
This doesn't work so for testing I replaced the is it raining with a light bulb switch. So if the switch is on and sunscreen is closed then open sunscreen.
The I looked in the log and saw that if sunscreen is closing the status was not Closed but ON and when it was Opening it had status off:
2020-05-10 14:44:47.864 Status: User: initiated a switch command (60/Zonwering -0-pos/Off)
2020-05-10 14:44:49.280 Status: User: initiated a switch command (60/Zonwering -0-pos/On)
Then i adjusted my script so the state of the Sunscreen to Off/On but this didn't help either. I tried different combo's in my script for the "zonwering-0-pos" but can't get it to work. I even tried that if Zonwering-0-pos is closed/On and time equals Realtime than set Zonwering-0-pos to Open/off but this doesn't work either.
Example of the script: Anyone got any idea what I am missing here or doing wrong. I have way more "complicated" scripts running but this one doesn't want to work.
Thanks in advance
I have a simple Blockly script that just needs to do the following:
If Roller shutter is closed and (buienrader switch) is it raining = on Then Open sunscreen.
This doesn't work so for testing I replaced the is it raining with a light bulb switch. So if the switch is on and sunscreen is closed then open sunscreen.
The I looked in the log and saw that if sunscreen is closing the status was not Closed but ON and when it was Opening it had status off:
2020-05-10 14:44:47.864 Status: User: initiated a switch command (60/Zonwering -0-pos/Off)
2020-05-10 14:44:49.280 Status: User: initiated a switch command (60/Zonwering -0-pos/On)
Then i adjusted my script so the state of the Sunscreen to Off/On but this didn't help either. I tried different combo's in my script for the "zonwering-0-pos" but can't get it to work. I even tried that if Zonwering-0-pos is closed/On and time equals Realtime than set Zonwering-0-pos to Open/off but this doesn't work either.
Example of the script: Anyone got any idea what I am missing here or doing wrong. I have way more "complicated" scripts running but this one doesn't want to work.
Thanks in advance