I’m talking about this:
trigger:
platform: state
entity_id: sensor.cp_packages_coming_today
condition:
condition: state
entity_id: 'sensor.cp_packages_coming_today'
state: 'Delivery'
Shouldn’t types of conditions also be platforms? It gets pretty weird when they are nested 4 deep:
condition:
condition: or
conditions:
- condition: and
conditions:
- condition: time
after: '22:30:00'
before: '5:00:00'
- condition: template
value_template: "{{ not is_state('device_tracker.sean_s_iphone_x', 'Traveling') }}"
- condition: template
value_template: "{{ now().strftime('%m')|int > 6 or now().strftime('%m')|int < 9 }}"
- condition: and
conditions:
- condition: time
after: '21:30:00'
before: '5:00:00'
- condition: template
value_template: "{{ not is_state('device_tracker.sean_s_iphone_x', 'Traveling') }}"
- condition: template
value_template: "{{ now().strftime('%m')|int > 8 or now().strftime('%m')|int < 7 }}"