Page 1 of 1

Using a thermostat with timer and switch

Posted: Tuesday 29 December 2020 17:56
by Jos123
I use a thermostat dummy to have a temperature setpoint that changes with my working hours, it changes the setpoint to 21 degrees when I'm coming home and 16 degrees on the hour that I'm leaving the house. A blockly program compares the setpoint to a switch on my heating device.

In the vacation I'm home the whole time, but at 8 o'clock, the setpoint changes to 16 degrees. Is it possible to add a switch to thermostat dummy to choose "workmode" or "vacationmode"? Now I'm using 2 setpoints and 2 events, which is not so user-friendly. I can use a "selector" dummy to select a mode but then I still need 2 setpoints?

Thanks

Re: Using a thermostat with timer and switch

Posted: Tuesday 29 December 2020 19:54
by waaren
Jos123 wrote: Tuesday 29 December 2020 17:56 In the vacation I'm home the whole time, but at 8 o'clock, the setpoint changes to 16 degrees. Is it possible to add a switch to thermostat dummy to choose "workmode" or "vacationmode"?
Did you try to use a timerplan?

Re: Using a thermostat with timer and switch

Posted: Wednesday 30 December 2020 10:51
by Jos123
I searched the internet and timerplan is working for me. Now I need to change the timerplan in settings but I want to change it with a selector switch, but my http://..... actions are not correct. I copied them from the internet and changed the IP-adres and port. Is there a mistake in the actions?

http://192.168.1.34:8080/json.htm?type= ... imerPlan=1
http://192.168.1.34:8080/json.htm?type= ... imerPlan=2

Re: Using a thermostat with timer and switch

Posted: Wednesday 30 December 2020 10:52
by Jos123
If I click on the link the timerplan changes.

Re: Using a thermostat with timer and switch

Posted: Wednesday 30 December 2020 13:19
by waaren
Jos123 wrote: Wednesday 30 December 2020 10:52 If I click on the link the timerplan changes.
It should have an extra slash when used in the action field
so
http:///192....

Re: Using a thermostat with timer and switch

Posted: Wednesday 30 December 2020 17:50
by Jos123
waaren wrote: Wednesday 30 December 2020 13:19
Jos123 wrote: Wednesday 30 December 2020 10:52 If I click on the link the timerplan changes.
It should have an extra slash when used in the action field
so
http:///192....
If I try with http:///, it doesn't work to. In my logs I have the following error:
Error: Error opening url: http:///192.168.1.34:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1

Re: Using a thermostat with timer and switch

Posted: Wednesday 30 December 2020 18:40
by waaren
Jos123 wrote: Wednesday 30 December 2020 17:50 If I try with http:///, it doesn't work to. In my logs I have the following error:
Error: Error opening url: http:///192.168.1.34:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1
You should allow your local network to access domoticz without password.

[Setup][Settings][System]

Local Networks (no username/password):
Networks:
127.0.0.*;192.168.1.*;::1

Re: Using a thermostat with timer and switch

Posted: Wednesday 30 December 2020 19:10
by Jos123
It works, thanks a lot for the helpfull tips.