Coder Social home page Coder Social logo

weatherxm-home-assistant's People

Contributors

anashost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zwugel

weatherxm-home-assistant's Issues

found character '%' that cannot start any token

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"

error with formatting

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 ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.