Heating automation xiaomi

Hello. I try turn on automatic heating in my house. I have a problem about automation script. What is the wrong ? because nothing happend :frowning: I used xiaomi sensor temerature

#################################################################

Basement Heater Automations

#################################################################

    ##########################################################
    ## Turn on Basement Heater when Cold
    ##########################################################
  • alias: Automatyczne Ogrzewanie ON
    trigger:

    • platform: numeric_state
      entity_id: sensor.temperature_158d00010fb2e5
      below: 20
      action:

    • service: switch.turn_on
      entity_id: group.ogrzewanie

      ##########################################################

      Turn off Basement Heater when Warm

      ##########################################################

  • alias: Automatyczne Ogrzewanie OFF
    trigger:

    • platform: numeric_state
      entity_id: sensor.temperature_158d00010fb2e5
      above: 22
      action:
    • service: switch.turn_off
      entity_id: group.ogrzewanie

Try adding quotation marks around temperature. So…

below: '20'

You do not have to deal with automations to achieve this result. Just use the generic thermostat platform

1 Like

Great to know.

I have Netatmo thermostats that I want to give back. Instead I will just use a temperature sensor and a simple switch.

The switch will need to short circuit (or keep open) two simple wires (that’s what a 150 euro Netatmo thermostats does).

Which switch can i use?

You can use any switch. Everything that reports itself as a switch - sonoff, z-wave, RPI rf, you name it!

Yes yes, but hardware wise what is more appropriate?

Think that no power is present. Only 2 thermostat wire (switch has to be on battery)

Thank you. Its works now :slight_smile:

Is there a way to combine the generic thermostat with the Honeywell Climate component?

We have several rooms with a Xiaomi Temperature sensor and only one central thermostat in the living room.

I’d like to be able to temporarily turn on the heating in case one of the rooms is too cold. This would be done by invoking the climate.set_temperature service on the Honeywell Climate component to e.g. 25 °C to make sure the heating kicks in.

By doing so e.g. the room upstairs would become warm and when the target temperature is reached, the climate.set_temperature service is invoked again setting the thermostat to e.g. 21 °C.

Well, you have to see what power is needed and find an appropriately ā€œsizedā€ switch, that won’t be overloaded by too powerful current.

You can achieve this with automations and maybe use the ā€œmin/max sensorā€ so you can get information about all the rooms, unless it’s just that 1 room that’s always colder than the rest.

Switch will need to be on battery. Zero current

Thank you for the feedback @kirichkov. No problem to do it using automations, I’ll give that a try. The Generic Thermostat just seemed to good to be true for my use case :blush:

How i can add more heater in my scene ?
This code its wrong :confused:

climate:

  • platform: generic_thermostat
    name: Study
    heater: switch.plug_158d00010ee85c
    heater: switch.plug_158d00010ac688
    heater: switch.plug_158d00010aa409
    target_sensor: sensor.temperature_158d00010fb2e5
    min_temp: 18
    max_temp: 25
    target_temp: 21
    tolerance: 0.3
    min_cycle_duration:
    seconds: 5
    keep_alive:
    minutes: 3

Yes, it is. You can use only one heater. I’d suggest you try either of the following:

  1. Create a group with all heaters inside, and try using that as a heater:
  2. Just add one heater, and then using automations switch on/off the other heaters, when the ā€œMasterā€ heater is switched on/off by the Generic thermostat
1 Like

Thank you very much :slight_smile: it’s works :smiley:

#####Ogrzewanie auto on

  • id: OgrzewanieAutoON
    alias: Ogrzewanie Auto ON
    trigger:
    platform: state
    entity_id: switch.plug_158d00010ee85c
    to: ā€˜on’
    action:
    service: homeassistant.turn_on
    entity_id: group.ogrzewanie
    #####Ogrzewanie auto off
  • id: OgrzewanieAutoOFF
    alias: Ogrzewanie Auto OFF
    trigger:
    platform: state
    entity_id: switch.plug_158d00010ee85c
    to: ā€˜off’
    action:
    service: homeassistant.turn_off
    entity_id: group.ogrzewanie
1 Like