Hye,
Here is a piece of blockly that should be executed on a dummy level switch. I don't know why it is not working.
Here is the dummy level switch:
Thanks for your heads up.
Blockly not executed with http command and dummy level switch Topic is solved
Moderator: leecollings
-
- Posts: 39
- Joined: Sunday 10 January 2016 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.3530
- Location: Cherbourg - Caen | France
- Contact:
-
- Posts: 109
- Joined: Tuesday 02 October 2018 20:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Blockly not executed with http command and dummy level switch
Nothing happens?
Does the dummy switch get to the right state?
What's written in your log?
You can also add an "write to log" to debug maybe
Does the dummy switch get to the right state?
What's written in your log?
You can also add an "write to log" to debug maybe
-
- Posts: 39
- Joined: Sunday 10 January 2016 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.3530
- Location: Cherbourg - Caen | France
- Contact:
Re: Blockly not executed with http command and dummy level switch
Thanks for your reply.
It's a nice idea to add a write to log, here is how I modified the blockly:
And here is the log when changing the state of the switch:
And in the events variable state tab i see 20 or 10 but a strange:
So from my understanding, it even don't go inside one of those two tests... Strange, maybe because no actions are configured in the switch for each level?
It's a nice idea to add a write to log, here is how I modified the blockly:
And here is the log when changing the state of the switch:
Code: Select all
2020-04-09 08:52:49.698 ([CAM]) Light/Switch ([CAM] ABSENT/PRESENT)
2020-04-09 08:52:49.688 Status: User: etienne initiated a switch command (1410/[CAM] ABSENT/PRESENT/Set Level)
2020-04-09 08:53:13.215 ([CAM]) Light/Switch ([CAM] ABSENT/PRESENT)
2020-04-09 08:53:13.204 Status: User: etienne initiated a switch command (1410/[CAM] ABSENT/PRESENT/Set Level)
Code: Select all
Idx Dernière mise à jour Nom État Valeur
1410 2020-04-09 09:03:22 [CAM] ABSENT/PRESENT PRESENT 2/20
-
- Posts: 39
- Joined: Sunday 10 January 2016 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.3530
- Location: Cherbourg - Caen | France
- Contact:
Re: Blockly not executed with http command and dummy level switch
I found a way to "enter" in the test. Instead of checking the level value. I check the string value. Strange. Now I have to figure out if it's possible to open url with cgi commands...
-
- Posts: 39
- Joined: Sunday 10 January 2016 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.3530
- Location: Cherbourg - Caen | France
- Contact:
Re: Blockly not executed with http command and dummy level switch
Found the pbm. One of url type was malformed for domoticz. It worked in a browser but not in blockly. So I homogenized all urls and with the string level test, everything worked. It's a solved pbm.
-
- Posts: 33
- Joined: Wednesday 12 February 2020 6:39
- Target OS: Linux
- Domoticz version: v2022.2
- Location: Czech
- Contact:
Re: Blockly not executed with http command and dummy level switch
For those who dont know, if you want to set level, it should be a tab of percentage, not integer!
So you can use name of level as a string (caps sensitive) or percentage bar.
So you can use name of level as a string (caps sensitive) or percentage bar.
DOCKERED v14824,NODE-RED,Tasmotized Sonoffs,Tasmoadmin,zigbee2mqtt,EWPE,REST980,WLED
Who is online
Users browsing this forum: No registered users and 0 guests