Automatically sunscreen down temperature

Moderator: leecollings

remko2000
Posts: 167
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Automatically sunscreen down temperature

Post by remko2000 »

I try to link my sunscreen (' scherm slaapkamer' ) to a sensor value (' temperatuur buiten' ). I want my sunscreen to go down above 22 degrees (if it is not already down) and only during the day within a certain time. I made this blocky:
Schermafbeelding 2018-06-04 om 20.22.59.png
Schermafbeelding 2018-06-04 om 20.22.59.png (24.76 KiB) Viewed 3156 times


This should work, however, he does not. What am I doing wrong now?
User avatar
kuifje
Posts: 36
Joined: Wednesday 25 October 2017 16:38
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Heemskerk
Contact:

Re: Automatically sunscreen down temperature

Post by kuifje »

Remko2000,
Would you try to set the time to OR instead of AND because it can never be 9 and 21.
Hope this will do the job.
Greetsz
Kuifje
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Automatically sunscreen down temperature

Post by CaesarPL »

Use dzVents. Really.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
mrf68

Re: Automatically sunscreen down temperature

Post by mrf68 »

I think the time setting is correct. It says > 09:00 and < 21:00, so for example 10:34 is > 09:00 and < 21:00. If you change the AND to OR, it will always be true, because any time after 09:00 will be > 09:00 and any time before 09:00 will be < 21:00.
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Automatically sunscreen down temperature

Post by StanHD »

Just a thought:- When you look in the "current states", does the "scherm slaapkamer" report as on or off, or maybe "Open or Close"?
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
remko2000
Posts: 167
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 »

I changed the and to or but no improvement. The current states are on or off. This is no my blocky:
Schermafbeelding 2018-06-05 om 19.57.43.png
Schermafbeelding 2018-06-05 om 19.57.43.png (25.75 KiB) Viewed 3093 times
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Automatically sunscreen down temperature

Post by Eddiever »

I assume you are from the Netherlands (or Belgium) you can delete the time > 9:00. I don't think it will be 22 degrees between 0:00 and 09:00. Please do check the Show current states to see if it really is on/off and not open/closed.
remko2000
Posts: 167
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 »

In the log it is on/off but in the current state its open/close. So I changed it to open/close now in my blocky. In the log I see:
EventSystem: Event triggered: Script screen aan test_1 (and repeating)
but nothing happening.
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Automatically sunscreen down temperature

Post by snellejellep »

@remko2000 the and blocks are stacked the wrong way around, if you stack in the second box of the and box and not in the first as you did here it will have a better chance of working. had this problem myself and that was the solution for me
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
remko2000
Posts: 167
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 »

Ok I've changed the stacked blocks, it's now:
Schermafbeelding 2018-06-07 om 21.40.18.png
Schermafbeelding 2018-06-07 om 21.40.18.png (25.26 KiB) Viewed 2989 times
Is this better?
gerardsoraya
Posts: 16
Joined: Saturday 02 September 2017 8:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Vollenhove, nederland
Contact:

Re: Automatically sunscreen down temperature

Post by gerardsoraya »

i have it already working like the picture below.
i only have the problem i now get every minute or every 10 minutes the notification. is there someone who knows the reason of that?
my theorie it is because the temperature is also changing?
Naamloos.png
Naamloos.png (25.4 KiB) Viewed 2932 times
Rpi 4
rflink 433 mhz
Philips hue
p1 smart meter cable
P1 smart meter solar
Lyric t6
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Automatically sunscreen down temperature

Post by Eddiever »

@gerardsoraya, make an extra check on the screens. In the If statement add the line with temperature with an AND statement in which you check if the screens are open. And in de Else if statement add the check if the screens are closed. This should prevent receiving extra messages.
remko2000
Posts: 167
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 »

I think that this in blocky doesnt work very well so I want something like this in LUA. I see some examples combined with weatherstation info. I want a basic script which send my screen down combined with my temperaturesensor (and looks if the screen is already down). Maybe with notification? Does anyone have something like this and want to post this script?
remko2000
Posts: 167
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 »

This is now my blocky but it still doesn' t work. I've tried many variations but still no solution. Anyone?
Schermafbeelding 2018-06-13 om 19.53.25.png
Schermafbeelding 2018-06-13 om 19.53.25.png (36.99 KiB) Viewed 2844 times
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Automatically sunscreen down temperature

Post by Eddiever »

I wish I could tell you what is wrong but I don't. What about if you try to keep it simple. Delete the time part. Just use the temperature and the status of the bedroom screen (scherm slaapkamer).

What if you try:
(replace test with scherm slaapkamer)
voorbeeld.PNG
voorbeeld.PNG (20.56 KiB) Viewed 2837 times
User avatar
najtram
Posts: 62
Joined: Wednesday 26 April 2017 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.9700
Location: Netherlands
Contact:

Re: Automatically sunscreen down temperature

Post by najtram »

I had something strange in a similar situation. In the picture you can see my working solution.
Somehow open/close needs to be switched with on/off, but conditional states needs to use open/close. Maybe a bug?

Image
Attachments
Schermafbeelding 2018-06-21 om 10.54.54.png
Schermafbeelding 2018-06-21 om 10.54.54.png (127.64 KiB) Viewed 2673 times
RFLink Gateway → 433Mhz/KAKU switches
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
gerardsoraya
Posts: 16
Joined: Saturday 02 September 2017 8:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Vollenhove, nederland
Contact:

Re: Automatically sunscreen down temperature

Post by gerardsoraya »

Eddiever wrote:@gerardsoraya, make an extra check on the screens. In the If statement add the line with temperature with an AND statement in which you check if the screens are open. And in de Else if statement add the check if the screens are closed. This should prevent receiving extra messages.
I made the blockly as i onderstanded the way you have said, the notification keeps on sending every 10 minutes. Image

Verstuurd vanaf mijn SM-G965F met Tapatalk

Rpi 4
rflink 433 mhz
Philips hue
p1 smart meter cable
P1 smart meter solar
Lyric t6
remko2000
Posts: 167
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 »

It seems that this blocky finally works:
Schermafbeelding 2018-06-24 om 09.56.21.png
Schermafbeelding 2018-06-24 om 09.56.21.png (38.73 KiB) Viewed 2599 times
I would likt to add a notification (prowl) but I don't want a message every 10 minutes. How can I prevent this?
User avatar
najtram
Posts: 62
Joined: Wednesday 26 April 2017 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.9700
Location: Netherlands
Contact:

Re: Automatically sunscreen down temperature

Post by najtram »

najtram wrote: Thursday 21 June 2018 12:21 Somehow open/close needs to be switched with on/off, but conditional states needs to use open/close. Maybe a bug?
So with the answer of remko2000, this seems to be a real issue. Does someone know where to do a bugreport or look up if this is already known?
RFLink Gateway → 433Mhz/KAKU switches
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Automatically sunscreen down temperature

Post by Eddiever »

@Remko2000, just add the notification. And then see if you receive it every 10 minutes. @gerardsoraya, what does you log tell you?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest