#Controlling Ecobee

1 messages · Page 1 of 1 (latest)

weak sun
#

Has anybody got this working well with HA? I am trying to get it to work by using phrases such as "I am hot", etc without too much luck. Even using the HA sentences parser I am not getting it to recognize the phrasing. I beat my head on it for a while with ChatGPT so I thought I would ask if anybody else has got it working. My main goal it to get it working so I can set it up at my mother in laws as well. She is losing her vision and anything I can do to help her make her life a little bit easier I am there.

I have updated my config/intents/en.yaml file to include

AdjustTemperature:

slots:

temperature_direction:

  • freezing

  • cold

  • cool

  • warm

  • hot

  • boiling

sentences:

  • I am {temperature_direction}

  • I'm {temperature_direction}

  • I feel {temperature_direction}

  • It's too {temperature_direction}

  • It's feeling {temperature_direction}

  • I'm feeling {temperature_direction}

I have also added this to my intent_script. yaml file

AdjustTemperature:

speech:

text: >

{% if temperature_direction in ['hot', 'boiling', 'warm'] %}

Okay, lowering the temperature by one degree.

{% elif temperature_direction in ['cold', 'freezing', 'cool'] %}

Got it. Raising the temperature by one degree.

{% else %}

I'm not sure how to adjust the thermostat.

{% endif %}

action:

  • variables:

climate_entity: climate.thermostat

current_temp: "{{ state_attr(climate_entity, 'temperature') | float }}"

  • choose:

  • conditions: "{{ temperature_direction in ['hot', 'boiling', 'warm'] }}"

sequence:

  • service: climate.set_temperature

target:

entity_id: "{{ climate_entity }}"

data:

temperature: "{{ current_temp - 1 }}"

  • conditions: "{{ temperature_direction in ['cold', 'freezing', 'cool'] }}"

sequence:

  • service: climate.set_temperature

target:

entity_id: "{{ climate_entity }}"

data:

temperature: "{{ current_temp + 1 }}"

rotund kraken
#

Use three "ticks" (`) to wrap your code.