Automatically sunscreen down temperature

Moderator: leecollings

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:@Remko2000, just add the notification. And then see if you receive it every 10 minutes. @gerardsoraya, what does you log tell you?
I just build the blockly like yours. I hope tomorow its getting hotter than 22 degrees haha. I my previous blockly it was working but the command was send every 10 minutes to the kaku asun. It seems like because the "temperatuur buiten" u updates every 10 minutes the script checked it and made a new command, even with the check if it was open and hotter than 22 degrees. I coppied your blockly and if it Works tomorow i will ad the notification.

Verstuurd vanaf mijn SM-G965F met Tapatalk

Rpi 4
rflink 433 mhz
Philips hue
p1 smart meter cable
P1 smart meter solar
Lyric t6
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 »

gerardsoraya wrote:
Eddiever wrote:@Remko2000, just add the notification. And then see if you receive it every 10 minutes. @gerardsoraya, what does you log tell you?
I just build the blockly like yours. I hope tomorow its getting hotter than 22 degrees haha. I my previous blockly it was working but the command was send every 10 minutes to the kaku asun. It seems like because the "temperatuur buiten" u updates every 10 minutes the script checked it and made a new command, even with the check if it was open and hotter than 22 degrees. I coppied your blockly and if it Works tomorow i will ad the notification.

Verstuurd vanaf mijn SM-G965F met Tapatalk
It is working now fine. Like your blockly only added the action to send notification when it hotter than 22 degrees.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
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 »

it is working at my home perfect now, only a message when the action is done. it only checks one screen but thats fine for me
Naamloos.png
Naamloos.png (38.67 KiB) Viewed 754 times
Rpi 4
rflink 433 mhz
Philips hue
p1 smart meter cable
P1 smart meter solar
Lyric t6
FrankVZ
Posts: 30
Joined: Sunday 27 May 2018 12:01
Target OS: -
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by FrankVZ »

gerardsoraya wrote:it is working at my home perfect now, only a message when the action is done. it only checks one screen but thats fine for me
Naamloos.png
You dont have problems with this blockly that the screens of the bedroom open during the night, if the temperature gets lower then 22? :O

I would definitely set the close command different from the open command, to prevent oscillating the screens.
E.g. close >25°C, open <22°C.

Secondly I also noticed some unexoected behaviour, if other variables in the "if" are used and are not used in the "else" part.
So putting the same variables in both places did solve the trick for me.

Best is to use a separate variable that is "on" if the requested is true. Otherwise "off".
Now you use the status of the screens, with "closed" and for settings "on"?
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 »


FrankVZ wrote:
gerardsoraya wrote:it is working at my home perfect now, only a message when the action is done. it only checks one screen but thats fine for me
Naamloos.png
You dont have problems with this blockly that the screens of the bedroom open during the night, if the temperature gets lower then 22? :O

I would definitely set the close command different from the open command, to prevent oscillating the screens.
E.g. close >25°C, open <22°C.

Secondly I also noticed some unexoected behaviour, if other variables in the "if" are used and are not used in the "else" part.
So putting the same variables in both places did solve the trick for me.

Best is to use a separate variable that is "on" if the requested is true. Otherwise "off".
Now you use the status of the screens, with "closed" and for settings "on"?
The screens are also on a timer for the night.

Status screens on open or closed and for setting on or off because otherwise it dont work.

Verstuurd vanaf mijn SM-G965F met Tapatalk

Rpi 4
rflink 433 mhz
Philips hue
p1 smart meter cable
P1 smart meter solar
Lyric t6
FrankVZ
Posts: 30
Joined: Sunday 27 May 2018 12:01
Target OS: -
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by FrankVZ »

gerardsoraya wrote: The screens are also on a timer for the night.

Status screens on open or closed and for setting on or off because otherwise it dont work.
Well, with a hardware timer in between, you can write blocklys what you want of course :)

I gave you 2 reasons and one tip that would make it work, didn't notice?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests