Yes…
automation:
alias: the amazing mf-social strikes again
trigger:
platform: state
entity_id: binary_sensor.something
to: 'on'
action:
- service: homeassistant.turn_on
entity_id: light.livingroom
- delay: 00:00:30
- condition: or
conditions:
- condition: state
entity_id: input_number.people_count
state: '0'
- condition: time
after: '18:30'
before: '17:20'
- service: homeassistant.turn_on
entity_id: light.porch