I have all entities integrated in my configuration like below.
All works well, except generic_thermostat.
I have error
Invalid config for [climate]: required key not provided @ data['platform']. Got None. See ?, line ?).
What is the problem?
configuration.yaml
homeassistant:
packages: !include_dir_named integrations
customize: !include customize.yaml
/integrations/mqtt.yaml
mqtt:
binary_sensor: !include_dir_list ../entities/binary_sensors
light: !include_dir_list ../entities/lights
sensor: !include_dir_list ../entities/sensors
switch: !include_dir_list ../entities/switches
/integrations/climate.yaml
climate:
generic_thermostat: !include_dir_list ../entities/thermostats
then example of different types of single entities
/entities/binary_sensors/main-door.yaml
device_class: door
name: "Main door"
state_topic: "/devices/wb-mio-gpio_70:1/controls/DR1"
payload_on: 0
payload_off: 1
/entities/lights/garage.yaml
name: "Light in garage"
state_topic: "/devices/wb-mr6c_120/controls/K2"
command_topic: "/devices/wb-mr6c_120/controls/K2/on"
qos: 0
payload_on: 1
payload_off: 0
optimistic: false
retain: true
/entities/sensors/P1.yaml
name: "Power on phase L1"
state_topic: "/devices/wb-map3et_145/controls/P L1"
device_class: "POWER"
unit_of_measurement: "W"
/entities/switches/gateOpen.yaml
name: "Open garage gate"
icon: mdi:boom-gate-arrow-up
state_topic: "/devices/wb-mio-gpio_70:2/controls/K1"
command_topic: "/devices/wb-mio-gpio_70:2/controls/K1"
qos: 0
payload_on: 1
payload_off: 0
optimistic: false
retain: true
/entities/thermostats/boiler-thermostat.yaml
name: "Boiler thermostat"
heater: switch.ten_boilera
target_sensor: sensor.temp_boilera
min_temp: 10
max_temp: 70
ac_mode: false
target_temp: 60
cold_tolerance: 5
hot_tolerance: 0
min_cycle_duration:
seconds: 10
keep_alive:
minutes: 3
initial_hvac_mode: "off"
away_temp: 16
comfort_temp: 22
sleep_temp: 16
precision: 0.1