I don’t know why its error after error but, its driving me nuts. I’m just trying to see if temp1 < temp2 - variable.
- platform: template
name: "Heat Mode"
id: heat_mode_update
update_interval: 30s
on_value:
if:
condition:
lambda: return (id(supply_air_temp).state > (id(return_air_temp).state + (id(heat_deg).state)));
then:
- lambda: id(heat_mode).publish_state(true);
- lambda: id(cooling_mode).publish_state(false);
- lambda: id(standby_mode).publish_state(false);
- platform: template
name: "Standby Mode"
id: standby_mode_update
update_interval: 30s
on_value:
if:
condition:
or:
- binary_sensor.is_on: heat_mode
- binary_sensor.is_on: cooling_mode
then:
- lambda: id(standby_mode).publish_state(true);
- platform: template
name: "Cool Mode"
id: cool_mode_update
update_interval: 30s
on_value:
if:
condition:
lambda: return (id(supply_air_temp).state < (id(return_air_temp).state - (id(ac_deg).state)));
then:
- lambda: id(cooling_mode).publish_state(true);
- lambda: id(heat_mode).publish_state(false);
- lambda: id(standby_mode).publish_state(false);
/config/esphome/smith.yaml: In lambda function:
/config/esphome/smith.yaml:195:32: error: 'class esphome::dallas::DallasComponent' has no member named 'state'
lambda: return (id(supply_air_temp).state > (id(return_air_temp).state + (id(heat_deg).state)));
^
/config/esphome/smith.yaml:195:58: error: 'class esphome::dallas::DallasComponent' has no member named 'state'
lambda: return (id(supply_air_temp).state > (id(return_air_temp).state + (id(heat_deg).state)));
^
/config/esphome/smith.yaml:195:85: error: request for member 'state' in 'heat_deg->esphome::globals::RestoringGlobalsComponent<T>::value<int>()', which is of non-class type 'int'
lambda: return (id(supply_air_temp).state > (id(return_air_temp).state + (id(heat_deg).state)));
^
/config/esphome/smith.yaml: In lambda function:
/config/esphome/smith.yaml:225:32: error: 'class esphome::dallas::DallasComponent' has no member named 'state'
lambda: return (id(supply_air_temp).state < (id(return_air_temp).state - (id(ac_deg).state)));
^
/config/esphome/smith.yaml:225:58: error: 'class esphome::dallas::DallasComponent' has no member named 'state'
lambda: return (id(supply_air_temp).state < (id(return_air_temp).state - (id(ac_deg).state)));
^
/config/esphome/smith.yaml:225:83: error: request for member 'state' in 'ac_deg->esphome::globals::RestoringGlobalsComponent<T>::value<int>()', which is of non-class type 'int'
lambda: return (id(supply_air_temp).state < (id(return_air_temp).state - (id(ac_deg).state)));