wrote the scene but when checking the configuration error
Invalid config for [automation]: [service] is an invalid option for [automation]. Check: automation-> service. (See /home/homeassistant/.homeassistant/configuration.yaml, line 35). Please check the docs at https://home-assistant.io/components/automation/
Here is the line itself
group:! include groups.yaml
Here is the script
alias: light_auto
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.ofis_dver_vkhodnaia_73
from: ‘on’
to: ‘off’
action:
service: light.turn_on
entity_id: light.unknown-rele_7_1753