Using a thermostat with timer and switch

Moderator: leecollings

Post Reply
Jos123
Posts: 8
Joined: Tuesday 03 September 2019 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Using a thermostat with timer and switch

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Using a thermostat with timer and switch

Post 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?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Jos123
Posts: 8
Joined: Tuesday 03 September 2019 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using a thermostat with timer and switch

Post 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
Attachments
domoticz.PNG
domoticz.PNG (90.23 KiB) Viewed 546 times
Jos123
Posts: 8
Joined: Tuesday 03 September 2019 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using a thermostat with timer and switch

Post by Jos123 »

If I click on the link the timerplan changes.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Using a thermostat with timer and switch

Post 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....
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Jos123
Posts: 8
Joined: Tuesday 03 September 2019 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using a thermostat with timer and switch

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Using a thermostat with timer and switch

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Jos123
Posts: 8
Joined: Tuesday 03 September 2019 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using a thermostat with timer and switch

Post by Jos123 »

It works, thanks a lot for the helpfull tips.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest