Hi,
This automation doesn’t seem to work, and the front end is reporting invalid config.
Any thoughts? I’ve fiddled with it for quite a while - clearly I’m missing something!
- alias: Light Dark Day
trigger:
platform: numeric_state
entity_id: sensor.solar
below: 500
condition:
condition: time
after: '05:30:00'
before: '17:30:00'
action:
service: switch.turn_on
entity_id: switch.lounge
And this is the sensor definition itself which has been working fine for ages.
- platform: scrape
resource: "http://pvoutput.org/intraday.jsp?id=xxxxxxxxx"
name: Solar
select: '#dashPowerOut'
unit_of_measurement: 'W'
value_template: '{{ value.replace(",", "") }}'