Automatically sunscreen down temperature

remko2000
Posts: 42
Joined: Thursday 28 December 2017 15:38
Target OS: Raspberry Pi
Domoticz version:
Contact:

Automatically sunscreen down temperature

Post by remko2000 » Monday 04 June 2018 20:26

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 1793 times


This should work, however, he does not. What am I doing wrong now?

kuifje
Posts: 17
Joined: Wednesday 25 October 2017 16:38
Target OS: Windows
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by kuifje » Tuesday 05 June 2018 8:15

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: 128
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Automatically sunscreen down temperature

Post by CaesarPL » Tuesday 05 June 2018 9:10

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

User avatar
mrf68
Posts: 270
Joined: Monday 23 February 2015 13:45
Target OS: Windows
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: Automatically sunscreen down temperature

Post by mrf68 » Tuesday 05 June 2018 9:12

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: 588
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 » Tuesday 05 June 2018 18:48

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
Domoticz Slave - Asrock Ion - Linux, Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa

remko2000
Posts: 42
Joined: Thursday 28 December 2017 15:38
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 » Tuesday 05 June 2018 20:00

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 1730 times

Eddiever
Posts: 84
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V4.9700
Location: The Netherlands (Hoogeveen)
Contact:

Re: Automatically sunscreen down temperature

Post by Eddiever » Tuesday 05 June 2018 20:29

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.
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

remko2000
Posts: 42
Joined: Thursday 28 December 2017 15:38
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 » Tuesday 05 June 2018 21:03

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: 123
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi
Domoticz version: 4.1xxxx
Location: The Neterlands
Contact:

Re: Automatically sunscreen down temperature

Post by snellejellep » Wednesday 06 June 2018 9:25

@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 gateway/vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ

remko2000
Posts: 42
Joined: Thursday 28 December 2017 15:38
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 » Thursday 07 June 2018 21:42

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 1626 times
Is this better?

gerardsoraya
Posts: 16
Joined: Saturday 02 September 2017 8:06
Target OS: Linux
Domoticz version: v3.8763
Location: kampen, nederland
Contact:

Re: Automatically sunscreen down temperature

Post by gerardsoraya » Sunday 10 June 2018 7:50

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 1569 times
ubuntu
rflink 433 mhz
rflink 868 mhz
p1 smart meter cable
toon thermostaat
otgw
pretty noob but whit google i've done a lot

Eddiever
Posts: 84
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V4.9700
Location: The Netherlands (Hoogeveen)
Contact:

Re: Automatically sunscreen down temperature

Post by Eddiever » Sunday 10 June 2018 11:27

@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.
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

remko2000
Posts: 42
Joined: Thursday 28 December 2017 15:38
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 » Sunday 10 June 2018 20:11

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: 42
Joined: Thursday 28 December 2017 15:38
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 » Wednesday 13 June 2018 19:55

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 1481 times

Eddiever
Posts: 84
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V4.9700
Location: The Netherlands (Hoogeveen)
Contact:

Re: Automatically sunscreen down temperature

Post by Eddiever » Wednesday 13 June 2018 20:33

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 1474 times
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

User avatar
najtram
Posts: 42
Joined: Wednesday 26 April 2017 11:50
Target OS: Raspberry Pi
Domoticz version: v4.9700
Location: Netherlands
Contact:

Re: Automatically sunscreen down temperature

Post by najtram » Thursday 21 June 2018 12:21

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 1310 times
Domoticz on Raspberry Pi 3 with USB RFLink Gateway at 433 Mhz for several KAKU switches. Bluetooth Soma Smart Shades. USB Opentherm Gateway connected to Remeha iSense with Remeha Tzerra boiler. ITHO ecofan RFT (ESP8266+CC1101). Almost running homebridge.

gerardsoraya
Posts: 16
Joined: Saturday 02 September 2017 8:06
Target OS: Linux
Domoticz version: v3.8763
Location: kampen, nederland
Contact:

Re: Automatically sunscreen down temperature

Post by gerardsoraya » Thursday 21 June 2018 12:55

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

ubuntu
rflink 433 mhz
rflink 868 mhz
p1 smart meter cable
toon thermostaat
otgw
pretty noob but whit google i've done a lot

remko2000
Posts: 42
Joined: Thursday 28 December 2017 15:38
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by remko2000 » Sunday 24 June 2018 10:01

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 1236 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: 42
Joined: Wednesday 26 April 2017 11:50
Target OS: Raspberry Pi
Domoticz version: v4.9700
Location: Netherlands
Contact:

Re: Automatically sunscreen down temperature

Post by najtram » Monday 25 June 2018 14:07

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?
Domoticz on Raspberry Pi 3 with USB RFLink Gateway at 433 Mhz for several KAKU switches. Bluetooth Soma Smart Shades. USB Opentherm Gateway connected to Remeha iSense with Remeha Tzerra boiler. ITHO ecofan RFT (ESP8266+CC1101). Almost running homebridge.

Eddiever
Posts: 84
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V4.9700
Location: The Netherlands (Hoogeveen)
Contact:

Re: Automatically sunscreen down temperature

Post by Eddiever » Monday 25 June 2018 20:22

@Remko2000, just add the notification. And then see if you receive it every 10 minutes. @gerardsoraya, what does you log tell you?
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests