Hi,
Domoticz version 4.10304 Beta
Running on an Raspberry Pi 3b+
I am a newbie in Domoticz
I have created a python script for presence detection of my phone:
When my phone is in the network the lightning 1, X10 Switch called "GSM Gerben" is turned on
When my phone is not in the network the switch is turned off.
This is working.
Now I have created a Blockly script which has to turn off 2 light switches (Yeelight Bulb LED RGBWW) after 120seconds when the Phone switch is set to OFF (when I am not at home)....but this is not working...nothing happens
What am I doing wrong here?
Greetzzz,
Gerben
Blockly script not working
Moderator: leecollings
-
gschmidt
- Posts: 200
- Joined: Thursday 20 December 2018 11:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Blockly script not working
- Attachments
-
- Blockly Example.JPG (88.16 KiB) Viewed 692 times
-
JimmyH1969
- Posts: 153
- Joined: Tuesday 28 June 2016 16:38
- Target OS: Windows
- Domoticz version: Beta
- Location: Amersfoort NL
- Contact:
Re: Blockly script not working
Not sure if you can combine devices like that. Maybe creating a extra line and seperate the devices? So like two SET commands. One for the Hoek Lamp 1 and one for Tafel Lamp.
-
gschmidt
- Posts: 200
- Joined: Thursday 20 December 2018 11:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Blockly script not working
I already figured it out....those 2 lamp (virtual) switches are created with a lua script, which is probably more complicated to trigger.
I can see in the log that the script is triggered...but not working
Both lamps are also in a Group, so I changed the Blockly script to set the group to off...this is working
I can see in the log that the script is triggered...but not working
Both lamps are also in a Group, so I changed the Blockly script to set the group to off...this is working
- Attachments
-
- Blockly Example 2.JPG (16.46 KiB) Viewed 685 times
Who is online
Users browsing this forum: No registered users and 1 guest