Each end of the month I write a value to input_number.electriciteit_verbruik_januari, input_number.electriciteit_verbruik_februari etc
Is it possible to attach an attribute “date” ( like “1 januari”) to it ? So I can make a chart out of it ?
this is what I have now…
service: input_number.set_value
target:
entity_id: >-
input_number.electriciteit_verbruik_{{
now()|as_timestamp|timestamp_custom('%B')|replace('y','i')|replace('rch','art')|replace('ai','ei')|replace('ne','ni')|replace('st','stus')|replace('Oc','ok')|lower
}}
data:
value: "{{ states(\"sensor.import_stroom_maand\") | float }}"