Sensibo AC controller automation

Hi all

Trying to set up some automatons for my A/C (running a Sensibo) but have issues with my config. Error message is Error loading /config/configuration.yaml: while parsing a block mapping in "/config/automations.yaml", line 77, column 3 expected <block end>, but found '<block sequence start>' in "/config/automations.yaml", line 89, column 4

Relevant configuration (within automations.yaml):

#Sensibo night automation - master bedroom
#Turn on at 6.45pm
- alias: 'Downstairs AC night'
  trigger:
    - platform: state
      entity_id: sensor.master_bedroom_a_c.current_temperature
      above: 22
      below: 16      
  condition:
    condition: and
    conditions: 
    - condition: state
      entity_id: group.all_devices
      state: home
   - condition: time
      after: '16:45:00'
      before: '06:00:00'
  action:
    - service: climate.turn_on
      data:
        entity_id: climate.master_bedroom_a_c
        temperature: 23
        operation_mode: auto
        fan_mode: auto
        swing_mode: fixedTop

#Turn off at 6.00am
- alias: 'Downstairs AC morning'
  trigger:
    platform: time
    at: "06:00:00"
  action:
    - service: climate.turn_off
      data:
        entitiy_id: climate.master_bedroom_a_c

Any suggestions?

In case the intent isn’t clear, the idea is to turn on the A/C (set to 23 degrees C) if the temp is above 22 or below 16 and one of the family is home (at 6.45pm), and then turn it off again at 6am.

And line 77 is - alias: 'Downstairs AC night', while line 89 is - condition: time.

I did wonder if it might be an issues with entity_id: sensor.master_bedroom_a_c.current_temperature in the trigger, as that’s not actually a sensor (its an attribute of climate.master_bedroom_a_c), so I also tried this as the trigger:

- alias: 'Downstairs AC night'
  trigger:
    - platform: template
      value_template: >-
        {{ states.climate.master_bedroom_a_c.current_temperature > 22 }}
        {{ states.climate.master_bedroom_a_c.current_temperature < 16 }}

But… same error.

Solution found…
See “Share your Project” here.

1 Like