Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lovelace YAML is not valid #9

Closed
remyderuysscher opened this issue Oct 26, 2020 · 5 comments
Closed

Lovelace YAML is not valid #9

remyderuysscher opened this issue Oct 26, 2020 · 5 comments
Labels
question Further information is requested

Comments

@remyderuysscher
Copy link

Can you provide a valid YAML lovelace card? The example is not working. Something like:
- entities: - grid_consumption_entity: sensor.dsmr_reading_electricity_currently_delivered - grid_feed_in_entity: sensor.grid_feed_in - house_consumption_entity: sensor.house_consumption - solar_consumption_entity: sensor.solar_consumption - solar_yield_entity: sensor.solar_yield type: 'custom:tesla-style-solar-power-card'

@reptilex
Copy link
Owner

I have never done a card configuration in YAML, only in the lovelace frontend. Are you sure you need the " - entities:" keyword? In lovelace I have exactly what is in the README.md

@reptilex
Copy link
Owner

reptilex commented Oct 26, 2020

My lovelace yaml looks like this:

title: Home
views:
  - badges:
      - entity: sensor.solar_yield
      - entity: sensor.stromz_leistung
      - entity: sensor.house_consumption
      - entity: sensor.marvin_range_sensor
      - entity: sensor.openweathermap_temperature
      - entity: sensor.openweathermap_cloud_coverage
    cards:
      - battery_charge_entity: sensor.battery_charge
        battery_charging_entity: sensor.battery_charging
        battery_consumption_entity: sensor.battery_consumption
        car_battery_entity: sensor.marvin_battery_sensor
        car_charging_entity: sensor.marvin_current_charging
        grid_consumption_entity: sensor.grid_consumption
        grid_feed_in_entity: sensor.grid_feed_in
        house_consumption_entity: sensor.house_consumption
        solar_consumption_entity: sensor.solar_consumption
        solar_yield_entity: sensor.solar_yield
        type: 'custom:tesla-style-solar-power-card'

@reptilex reptilex added the question Further information is requested label Oct 26, 2020
@PierreScerri
Copy link

I have the same issue. This is a screen grab of the sensors and values and the corresponding card error.

Screenshot 2020-11-15 at 13 01 37

@reptilex
Copy link
Owner

If you update to my latest version you don't need entity anymore. This was a remnant of the base card I did this with and older versions had this problem

@PierreScerri
Copy link

Thank you. That is very nice. Well done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants