Hello,
I have also problems with the new file notification.
This is the old working version:
- service: notify.energie
data_template:
message: "{{now().day}}-{{now().month}}-{{now().year}},
{% if now().weekday() in (0,) %}Monday{% elif now().weekday() in (1,) %}Tuesday{% elif now().weekday() in (2,) %}Wednesday{% elif now().weekday() in (3,) %}Thursday{% elif now().weekday() in (4,) %}Friday{% elif now().weekday() in (5,) %}Saturday{% elif now().weekday() in (6,)%}Sunday{% endif %},
{{ states.sensor.energie_meter_dag.state }},
{{ states.sensor.energie_dag_afname.state }},
{{ states.sensor.energie_dag_opbrengst.state }},
{{ states.sensor.energie_meter_nacht.state }},
{{ states.sensor.energie_nacht_afname.state }},
{{ states.sensor.energie_nacht_opbrengst.state }},
{{ states.sensor.energie_meter_zon.state }},
{{ states.sensor.energie_gas.state }},
{{ states.sensor.energy_verw_badk_yesterday.state }}"
I thought this was the new version but apperently, it doesn’t work:
- service: notify.send_message
target:
entity_id: notify.energy
data:
message: "{{now().day}}-{{now().month}}-{{now().year}},
{% if now().weekday() in (0,) %}Monday{% elif now().weekday() in (1,) %}Tuesday{% elif now().weekday() in (2,) %}Wednesday{% elif now().weekday() in (3,) %}Thursday{% elif now().weekday() in (4,) %}Friday{% elif now().weekday() in (5,) %}Saturday{% elif now().weekday() in (6,)%}Sunday{% endif %},
{{ states.sensor.energie_meter_dag.state }},
{{ states.sensor.energie_dag_afname.state }},
{{ states.sensor.energie_dag_opbrengst.state }},
{{ states.sensor.energie_meter_nacht.state }},
{{ states.sensor.energie_nacht_afname.state }},
{{ states.sensor.energie_nacht_opbrengst.state }},
{{ states.sensor.energie_meter_zon.state }},
{{ states.sensor.energie_gas.state }},
{{ states.sensor.energy_verw_badk_yesterday.state }}"
Any idea how to solve it?
E.