Cant get input_select working

Looks like the solution :slight_smile:

1 Like

@keithh666 hope you (or someone else) got the answer for this as well :slight_smile:

Today its saturday and i had the button (input_boolean) set to weekdays only but still the alarm went off.

image

Input_boolean:
  alarmweekday:
    name: 'Enbart vardagar'
#    initial: off
    icon: mdi:calendar

Automation:
- alias: 'Morningalarm'
  trigger:
    platform: template
    value_template: '{{ states.sensor.time.state == states.sensor.alarm_time.state }}'
  condition:
    condition: or
    conditions:
      - condition: and
        conditions:
          - condition: state
            entity_id: input_boolean.alarmweekday
            state: 'on'
          - condition: time
            weekday:
              - mon
              - tue
              - wed
              - thu
              - fri
      - condition: state
        entity_id: input_boolean.alarmweekday
        state: 'off'
      - condition: state
        entity_id: input_select.status_hemma
        state: 'Hemma'
  action:

You have removed the ‘and’ condition so this won’t work :stuck_out_tongue:

Where to place that?

Back where it was in my original posting :P…

     - condition: and
       conditions:
         - condition: state
           entity_id: input_boolean.alarmstatus
           state: 'on'
         - condition: state
           entity_id: input_boolean.alarmweekday
           state: 'off'
1 Like

I should not make changes in the config while having a mancold :smiley: