I am following this Github guide to get live weather data from my local area, to compare my basements humidity to the outside humidity.
I am aware that in 2023.06 the use of platform: Command-line was depreciated so I rewrote the script to look like:
command_line:
- sensor:
- name: local_weatherstation_dmi
command: >
curl -s "https://dmigw.govcloud.dk/v2/metObs/collections/observation/items?stationId=06181&period=latest-10-minutes&api-key=APIHIDDENFORPRIVACY"
scan_interval: 600
command_timeout: 30
value_template: >
{% if value_json is not none %}
OK – {{ as_timestamp(value_json.timeStamp) | timestamp_local }}
{% else %}
Unavailable
{% endif %}
json_attributes:
- features
- timeStamp
This sensor is living in a separate sensors.yaml which I point to in my configurations in this way:
sensors: !include sensors.yaml
For some reason it still wont show up in entities under Developer tools, no matter what I try. Any suggestions?