Hi everyone! I live in a hot country and I want to replace my thermostat with home made thermostat. Thermostat is made of a ESP 8266, a temperature sensor, a display and 4 relays.
- 1 for the AC On/Off
- 1 for the fan speed high, 1 medium and 1 for Low
I have created a climate with a target temperature, min and max. And it is looking good so far.
Now, what I would like is to create an automation for relay1 (high) to be triggered when temperature is over 27C, trigger relay2 (medium) when temperature is between 25 and 27 and relay1 when temperature is under 25…
I 'll appreciate any help… Thanks!
I have tried to add an automation but with not much luck… Maybe this could guide you to support me…
- alias: 'AC low fan'
trigger:
- platform: time_pattern
seconds: "2"
- condition: state
entity_id: 'switch.tasmota_tasmota_2'
state: 'on'
- condition: numeric_state
entity_id: 'sensor.tasmota_dht11_temperature'
above: 10
below: 25
action:
- service: switch.turn_on
entity_id: switch.tasmota_tasmota2
- alias: 'AC medium fan'
trigger:
- platform: time_pattern
seconds: "2"
condition:
- condition: state
entity_id: 'switch.tasmota_tasmota_2'
state: 'on'
- condition: numeric_state
entity_id: 'sensor.tasmota_dht11_temperature'
above: 25
below: 27
action:
- service: switch.turn_on
entity_id: switch.ac_thermo_01_tasmota3
- alias: 'AC high fan'
trigger:
- platform: time_pattern
seconds: "2"
condition:
- condition: state
entity_id: 'switch.tasmota_tasmota_2'
state: 'on'
- condition: numeric_state
entity_id: 'sensor.tasmota_dht11_temperature'
above: 27
below: 45
action:
- service: switch.turn_on
entity_id: switch.ac_thermo_01_tasmota4
This is the error I am getting…
Invalid config for [automation]: required key not provided @ data['trigger'][1]['platform']. Got None. (See /config/configuration.yaml, line 9).
Thanks in advance 
Hi guys, thanks for all you help and support!!!

I have managed to sort this out a long time back thanks to @willbob8 using node red.
Do not hesitate to contact me if you want the plan. Thanks!!