Time Triggered Blockly does not work (LED Off - Xiaomi Gateway v2) Topic is solved

Moderator: leecollings

Post Reply
misfit
Posts: 18
Joined: Wednesday 29 November 2017 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Time Triggered Blockly does not work (LED Off - Xiaomi Gateway v2)

Post by misfit »

I turn on the LED of a xiaomi gateway (v2) at sunset:

Code: Select all

If Time = Sunset and Gateway = Off
Do Set Gateway = On
   Set Gateway = Level (%) 15    
That's working ok.

But why it's not turning off using this logic? >>

Code: Select all

If Time >= 22:00 and Gateway = On
Do Set Gateway = Off
   Set Gateway = Level (%) 0    
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Time Triggered Blockly does not work (LED Off - Xiaomi Gateway v2)

Post by Geitje »

Have you set the "trigger" drop down menu to "time"?
Please post a screenshot of your blocky.
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
misfit
Posts: 18
Joined: Wednesday 29 November 2017 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Time Triggered Blockly does not work (LED Off - Xiaomi Gateway v2)

Post by misfit »

Yes i set the trigger to 'time':
trigger.jpg
trigger.jpg (3.59 KiB) Viewed 616 times
The logic for On/Off:
on.jpg
on.jpg (19.36 KiB) Viewed 615 times
off.jpg
off.jpg (19.68 KiB) Viewed 615 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Time Triggered Blockly does not work (LED Off - Xiaomi Gateway v2)

Post by waaren »

misfit wrote: Monday 04 November 2019 9:02 Yes i set the trigger to 'time':
Try with this, State can be something else then 'On' or 'Off'
Changing level to > 0% does switch the devce On and changing level to 0% does switch the device to Off.
dimmer on.png
dimmer on.png (28.33 KiB) Viewed 612 times
dimmer off.png
dimmer off.png (28.59 KiB) Viewed 612 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
misfit
Posts: 18
Joined: Wednesday 29 November 2017 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Time Triggered Blockly does not work (LED Off - Xiaomi Gateway v2)

Post by misfit »

waaren wrote: Monday 04 November 2019 9:52
misfit wrote: Monday 04 November 2019 9:02 Yes i set the trigger to 'time':
Try with this, State can be something else then 'On' or 'Off'
Changing level to > 0% does switch the devce On and changing level to 0% does switch the device to Off.

dimmer on.pngdimmer off.png
That's working, thank you. Any idea how to change the LED color using blockly?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Time Triggered Blockly does not work (LED Off - Xiaomi Gateway v2)

Post by waaren »

misfit wrote: Monday 04 November 2019 19:25 That's working, thank you. Any idea how to change the LED color using blockly?
You could call a scene with predefined colors for switches or use [messages] openURL with something like ' http://127.0.0.1:8080/json.htm?type=com ... htness=100'
But it would be to complicated for Blockly for my taste. I would always use dzVents to do something more complicated then switching something on or off.
But that is a matter of personal preference.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest