Blockly examples

SilentScreamer
Posts: 3
Joined: Wednesday 09 May 2018 17:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by SilentScreamer » Wednesday 09 May 2018 17:41

Thanks, that worked very well, thanks for the unreal fast response!

shamie
Posts: 3
Joined: Wednesday 20 June 2018 22:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by shamie » Wednesday 20 June 2018 22:29

I cannot figure out why my blockly isnt working, i hope you guys can give me some advice..

i want to close my suncreen (zonnescherm) when it's in state of Open and when its 22:00 (in case i am not home and i forget to close the screen by myself.)
when it closes i want it to send out an message to Kodi and an e-mail and mentioned in the log.

Image

what is wrong here?

User avatar
StanHD
Posts: 566
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Blockly examples

Post by StanHD » Wednesday 20 June 2018 22:48

shamie wrote:I cannot figure out why my blockly isnt working, i hope you guys can give me some advice..

i want to close my suncreen (zonnescherm) when it's in state of Open and when its 22:00 (in case i am not home and i forget to close the screen by myself.)
when it closes i want it to send out an message to Kodi and an e-mail and mentioned in the log.

Image

what is wrong here?
Try formating like this:-

If [Switch = State] and [Time = ??:??]
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Domoticz Slave - Asrock Ion - Linux, Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa

cobra045
Posts: 35
Joined: Friday 12 February 2016 21:58
Target OS: Raspberry Pi
Domoticz version: 3.4834
Contact:

Re: Blockly examples

Post by cobra045 » Thursday 21 June 2018 10:35

Try this
2018-06-21_10h28_03.png
2018-06-21_10h28_03.png (15.42 KiB) Viewed 598 times

Cobra045

shamie
Posts: 3
Joined: Wednesday 20 June 2018 22:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by shamie » Thursday 21 June 2018 18:36

StanHD wrote:
Wednesday 20 June 2018 22:48
shamie wrote:I cannot figure out why my blockly isnt working, i hope you guys can give me some advice..

i want to close my suncreen (zonnescherm) when it's in state of Open and when its 22:00 (in case i am not home and i forget to close the screen by myself.)
when it closes i want it to send out an message to Kodi and an e-mail and mentioned in the log.

Image

what is wrong here?
Try formating like this:-

If [Switch = State] and [Time = ??:??]
cobra045 wrote:
Thursday 21 June 2018 10:35
Try this

2018-06-21_10h28_03.png


Cobra045

Thank you both, that helped me out a lot, its a logical thing after all 8-)
it didn't work for the first time, the sunscreen didnt go up, but i did get a mail, sow the part before "Do" worked.
after some testing i decided to use the group where the sunscreen belongs to.

so now i have this working:
Image

i don't understand why the suncreen goes to "close" but turning the group to "off" works :D

tozzke
Posts: 131
Joined: Friday 02 January 2015 10:22
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Blockly examples

Post by tozzke » Friday 22 June 2018 17:49

You'll probably have to use 'Open'/'Closed' in the If statement and 'On'/'Off' in the Do section

shamie
Posts: 3
Joined: Wednesday 20 June 2018 22:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by shamie » Saturday 23 June 2018 18:52

tozzke wrote:
Friday 22 June 2018 17:49
You'll probably have to use 'Open'/'Closed' in the If statement and 'On'/'Off' in the Do section
yeah maybe i will give that a shot as well.

Benneton
Posts: 23
Joined: Thursday 08 December 2016 10:46
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by Benneton » Wednesday 04 July 2018 19:25

Hi,

Working on similar script, to have my screens closed when it is after 07:30 and before 18:00.
Script checks if screen is open, then time check followed by actual status of light sensor. when bigger then 1100lux screen to close.
This is what I made of it:

Image

It works for the part that the screen needs to close.

I also have a script that opens the screen at 19:00 hours.
When screens are closed the script opens them. Problem is that the script to close the screens then closes them and I get looped in open /close.

It appears that the time statement is not working in the screens_neer script.

Below what I made to open the screens
Image

Any ideas what I am overlooking or not understanding correctly?
Help much appreciated.

Bernard

Benneton
Posts: 23
Joined: Thursday 08 December 2016 10:46
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by Benneton » Wednesday 04 July 2018 19:27

Looking at it I believe I have worked it out.
In the time statement it sould be AND instead of OR.

Will change and see if it works tomorrow.

Bernard

Benneton
Posts: 23
Joined: Thursday 08 December 2016 10:46
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by Benneton » Thursday 05 July 2018 19:38

That did the trick :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest