anashost / weatherxm-home-assistant Goto Github PK
View Code? Open in Web Editor NEWExtract weather data from any weatherXM station via api calls in Home Assistant
Extract weather data from any weatherXM station via api calls in Home Assistant
After using the current code-snipped for sensors.yaml i get this error:
Error loading /config/configuration.yaml: while scanning for the next token found character '%' that cannot start any token in "/config/sensors.yaml", line 44, column 14
it´s in this block:
## feels like celsius °C
- platform: template
sensors:
weatherxm_feels_like_celsius:
{% set state = state_attr('sensor.weatherxm_sensor', 'feels_like')|round(1) %}
{% if state < 1 %} {{ state | round(0) }}
{% else %} {{ state }}
{% endif %}
device_class: temperature
unit_of_measurement: "°C"
is it correct to add
value_template: >
before the line, like:
- platform: template
sensors:
weatherxm_feels_like_celsius:
value_template: >
{% set state = state_attr('sensor.weatherxm_sensor', 'feels_like')|round(1) %}
{% if state < 1 %} {{ state | round(0) }}
{% else %} {{ state }}
{% endif %}
device_class: temperature
unit_of_measurement: "°C"
Added this into my yaml and getting this:
end of the stream or a document separator is expected (127:1)
124 |
125 | # WeatherXM
126 |
127 | - platform: rest
-------^
128 | name: weatherxm_sensor
129 | resource: 'https://api.weathe ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.