Hello,
Well I’m somewhere between, managed to create the thermostat.
If I click the buttons manually it turns on/off
It doesn’t work automatically.
Hello,
Well I’m somewhere between, managed to create the thermostat.
If I click the buttons manually it turns on/off
It doesn’t work automatically.
Like I told someone else in October 2020:
Because I can’t replicate other people’s failures, I can’t help them fix it.
This is funny (peculiar)
Like you, I have generic thermostats set up, the boiler one is set to run the actual boiler. The cooling one is set to control a fake switch (template) I then mirror the fake to fans (mainly extract) both of them work flawlessly.
Having said that I agree with @anon43302295 that having observed them in action, I could probably do just as well (or even better) with automations (maybe 4 but possibly just 2)
I leave both running 24/7 and just vary the set points (heating) for the conditions extant.
I just find the thermostats ‘convenient’
It’s intregueing that it ‘sometimes’ doesn’t work, I’ll try to wipe a test instance and try one from scratch.
Got it to work.
After 3 days .
Honestly probably some typo somewhere and a big pile of stupid from my side.
One thing I can suggest is how to thermostat actually works, that could have saved me some time.
When I was pressing the flame icon I expected to turn on heating and it entered Idle mode, I didn’t understand why.
The flame icon it’s like master On switch for the thermostat. First you switch it on after that try working with it, to see if it’s heating/switching correctly.
The other suggestion instead of switch try the input_boolean
, way faster for testing.
All of that is mentioned in this thread.
I have this weird issue… The thermostat will control the relay appropriately when I manually adjust the temperature in thermostat card above/below current temperature, however it will not trigger automatically in background when actual temperature changes.
I had my thermostat setup and it was working as designed for couple of weeks. It is taking temperature from xiaomi BLE sensor and controlling a zigbee relay.
Not sure if this is related, but will say this anyway: I had some issues with my zigbee setup. I am running ZHA and wanted to try zigbee2MQTT. After enabling and quickly disabling that addon, all my zigbee devices were no longer “in range” in ZHA. So decided to restore a backup from a day ago. After this, HA has decided the database is corrupt and dumped it, starting fresh. I still had to re-add all zigbee devices manually. I believe all device and entity names remain the same. All other automations are still working, however thermostat function is broken.
What could have happened and how do I diagnose this?
Reviving an old thread here, hope that’s fine.
I appear to have the same issue as others in this thread describe. Take note that I am a COMPLETE noob and installed HA yesterday on a NUC. I can’t code or anything remotely like it. I’m not stupid though (I swear!).
I have a Tuya switch with a heater plugged into it. The switch iss controllable by lovelace I can confirm.
I have a Sonoff Zigbee temp and humi sensor connected to a zigbee bridge that is displaying on a card.
Now I want to use the generic thermostat platform and have entered the following into my configuration.yaml
climate:
- platform: generic_thermostat
name: Office Climate Control
heater: switch.small_tuya_plug_1_socket_1
target_sensor: sensor.sonoff_a480064461_temperature
ac_mode: false
target_temp: 25
cold_tolerance: 0.3
hot_tolerance: 0.5
min_cycle_duration:
seconds: 30
precision: 0.1
But it does nothing. Currently the temp sensor is reading 21 C but the switch isn’t coming on.
Any assistance would be appreciated. I see above that users talk about using bolean instances or some such, I don’t know what they’re on about so if that is the work around if someone could point me in the right direction that’d be great.
Thanks in advance.
Hi,
I just had similar issue.
For me the issue seems to have been that my template switch did not like to toggle.
I changed it to a input_boolean ( You can create one with UI in helpers, they are called Toggles in there) and worked straight away.
You could than use that input_boolean state to control your switch.
Also make sure your sensor gives out a temperature.
does anyone know where hvac modes is set - especially how it is represented in lovelace???
Mine are all lower case - problem is that simple-thermostat takes the state case from the climate entity.
Other people are getting mixed case eg: “Heat” “Cool” “Off” and TBH I dont know where this comes from.
Im getting “heat”, “cool”, “off” (lowercase)
Actually simple thermostat takes them from the attributes of the climate entity. Those should be correct.
To give you an idea how it is represented in Lovelace:
…with the underlying code of:
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:simple-thermostat
card_mod: null
style: |
ha-card {
background: WhiteSmoke;
--keep-background: true;
}
entity: climate.beanbag_zone_ac
control:
_headings: false
hvac:
'off':
name: Aus
cool:
name: Cool
dry:
name: Dry
fan_only:
name: Fan Only
fan:
auto:
name: Auto
icon: mdi:fan-auto
low:
name: Low
icon: mdi:fan-speed-1
medium:
name: Medium
icon: mdi:fan-speed-2
high:
name: High
icon: mdi:fan-speed-3
powerful:
name: Powerful
icon: mdi:fan-chevron-up
night: false
lowMedium: false
lowHigh: false
mediumHigh: false
hide:
temperature: true
icon:
auto: mdi:autorenew
cool: mdi:snowflake
'off': mdi:power
sensors:
- entity: sensor.sonoff_snzb_02_temperature_sensor_beanbag_zone_temperature
icon: mdi:home-thermometer-outline
- entity: sensor.sonoff_snzb_02_temperature_sensor_beanbag_zone_humidity
icon: mdi:water-percent
- entity: sensor.temptrend_beanbag_zone
icon: mdi:thermometer-lines
step_size: '1'
layout:
mode:
headings: false
- type: entities
card_mod: null
style: |
ha-card {
background: WhiteSmoke;
--keep-background: true;
}
entities:
- entity: sensor.ac_beanbag_zone_cooling_time_today
name: Kühldauer heute (Stunden)
- type: entities
card_mod: null
style: |
ha-card {
background: WhiteSmoke;
--keep-background: true;
}
entities:
- entity: switch.pj_mini_zsw01_ac_beanbag_zone
icon: mdi:lightning-bolt
name: AC Beanbag Zone (Master Switch)
state_color: true
Hope this helps to lead you to how it can be done.
Update: Solved
Two things I was missing - I needed to give the thermostat entitie a unique_id and then add it to a card in lovelace so it could be turned on/off or adjusted. That solved my issue
OK so I’ve created a helper toggle. But how do I link that helper to a switch?
Hi all, I also had a large amount of trouble getting generic_thermostat to work, controlling a simple fan. It would be all hooked up correctly, and in lovelace dashboard card I could see the live room temperature, and also could click to toggle on the fan manually. But the thermostat would never turn the fan on.
I eventually solved it by setting:
initial_hvac_mode: "cool"
Now the thermostat card is automatically turning the fan on and off. It seems setting
initial_hvac_mode: "off"
somehow stops it from ever turning the output switch on.