Automatically sunscreen down temperature

gerardsoraya
Posts: 15
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 » Monday 25 June 2018 20:53

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

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

gerardsoraya
Posts: 15
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 » Saturday 30 June 2018 22:01

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

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

gerardsoraya
Posts: 15
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 15 July 2018 8:39

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 330 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

FrankVZ
Posts: 35
Joined: Sunday 27 May 2018 12:01
Target OS: -
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by FrankVZ » Sunday 15 July 2018 13:12

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: 15
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 15 July 2018 19:17


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

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

FrankVZ
Posts: 35
Joined: Sunday 27 May 2018 12:01
Target OS: -
Domoticz version:
Contact:

Re: Automatically sunscreen down temperature

Post by FrankVZ » Sunday 15 July 2018 19:25

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