home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.29k stars 30.61k forks source link

yr view not working after update from 0.51.1 to 0.51.2 #9022

Closed loewal closed 6 years ago

loewal commented 7 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

**Home Assistant release (hass --version): 0.51.2

**Python release (python3 --version): 3.5.2

**Component/platform: YR

**Description of problem: customize.yaml doesn't work for yr; for other platforms its ok

**Expected: visible, but not in view only in mainview as red circles

**Problem-relevant configuration.yaml entries and steps to reproduce:

--------------------------------------------------------------------------------------------------------------
## configuration.yaml

homeassistant:
  # Name of the location where Home Assistant is running
  name: Insula
  # Location required to calculate the time the sun rises and sets
  latitude: 50.887338
  longitude: 5.995351
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 144
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Amsterdam

  customize: !include /root/.homeassistant/customize.yaml

# Show links to resources in log and frontend
#introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL or running in Docker etc
  # base_url: example.duckdns.org:8123

# Checks for available updates
updater:

# Discover some devices automatically
#discovery:

recorder:
  purge_days: 1

wemo:
 static:
 - 10.0.0.19

light:
  platform: hue
  host: 10.0.0.174

sensor:

# yr weather conditions
 - platform: yr
   name: Weer
   friendly_name: Weer
   monitored_conditions:
    - temperature
    - precipitation
    - windSpeed
    - pressure
    - windDirection
    - humidity
    - fog
    - cloudiness
    - lowClouds
    - mediumClouds
    - highClouds
    - dewpointTemperature

#Toon
 - platform: command_line
   name: toon
   command: "python3 ~/.homeassistant/toonclient.py -t -p -g -c -U *********************************"
   scan_interval: 300

 - platform: template
   sensors:
     toontemp:
       value_template: '{{ states.sensor.toon.state.split("\n")[0] }}'
     toonpowerusage:
       value_template: '{{ states.sensor.toon.state.split("\n")[1] }}'
     toongasusage:
       value_template: '{{ states.sensor.toon.state.split("\n")[2] }}'
     toonprogramm:
       value_template: '{% if states.sensor.toon.state.split("\n")[3] == "0" %}Comfort{% elif states.sensor.toon.state.split("\n")[3] == "1" %}Home{% elif states.sensor.toon.state.sp$

# The toonprgramma sensor returns current state
# Program Turned Off(programm off) == -1
# RELAX (comfort) == 0
# ACTIVE (home) == 1
# SLEEP (sleep) == 2
# AWAY (away) == 3
# HOLIDAY (holiday) == 4

switch:
# The following swith set Toon to "Comfort" with the oncmd and sets Toon to "Sleep" with the offcmd.
  - platform: command_line
    switches:
     toon_prog_comfort:
        command_on: "python3 ~/.homeassistant/toonclient.py -C 0 -U ******************************"
     toon_prog_sleep:
        command_off: "python3 ~/.homeassistant//toonclient.py -C 2 -U *****************************"

# The following swith set Toon to "Home" with the oncmd and sets Toon to "Away" with the offcmd.
  - platform: command_line
    switches:
      toon_prog_home:
        command_on: "python3 ~/.homeassistant/toonclient.py -C 1 -U ******************************"
      toon_prog_away:
        command_off: "python3 ~/.homeassistant/toonclient.py -C 3 -U ******************************i"
# Special Scenes to easily activate the different Toon Programm States
scene:
  - name: Toon Comfort
    entities:
      switch.toon_prog_comfort: on
  - name: Toon Sleep
    entities:
      switch.toon_prog_sleep: off
  - name: Toon Home
    entities:
      switch.toon_prog_home: on
  - name: Toon Away
    entities:
      switch.toon_prog_away: off

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time.
history:

# View all events in a logbook
logbook:

# Track the sun
#sun:

# Text to speech
tts:
  platform: google

group: !include groups.yaml

--------------------------------------------------------------------------------------------------------------

## customize.yaml:

sensor.yr_symbol:
  friendly_name: Actueel Weer
sensor.yr_temperature:
  friendly_name: Temperatuur
sensor.yr_precipitation:
  friendly_name: Neerslag
sensor.yr_pressure:
  friendly_name: Luchtdruk
sensor.yr_wind_speed:
  friendly_name: Wind
  icon: mdi:speedometer
sensor.yr_wind_direction:
  friendly_name: Windrichting
sensor.yr_humidity:
  friendly_name: Luchtvochtigheid
sensor.yr_fog:
  friendly_name: Mist
sensor.yr_cloudiness:
  friendly_name: Bewolking
sensor.yr_low_clouds:
  friendly_name: Wolken Laag
sensor.yr_medium_clouds:
  friendly_name: Wolken Midden
sensor.yr_high_clouds:
  friendly_name: Wolken Hoog
sensor.yr_dewpoint_temperature:
  friendly_name: Dauwpunt

sensor.toon:
  friendly_name: Toon
sensor.toonpowerusage:
  friendly_name: Stroomverbruik
sensor.toongasusage:
  friendly_name: Gasverbruik
sensor.toontemp:
  friendly_name: Temperatuur
sensor.toonprogramm:
  friendly_name: Programma Status

switch.toon_prog_comfort:
  friendly_name: Comfort
switch.toon_prog_sleep:
  friendly_name: Slapen
switch.toon_prog_home:
  friendly_name: Thuis
switch.toon_prog_away:
  friendly_name: Weg

Sensor Toon works, YR doesn't!?! Appear as circles in mainview.

---------------------------------------------------------------------------------------------------------------
## Groups.yaml:

Weer:
  name: Weer
  entities:
  - sensor.yr_Temperature
  - sensor.yr_precipitation
  - sensor.yr_pressure
  - sensor.yr_wind_speed
  - sensor.yr_wind_direction
  - sensor.yr_humidity
  - sensor.yr_fog
  - sensor.yr_cloudiness
  - sensor.yr_low_clouds
  - sensor.yr_medium_clouds
  - sensor.yr_high_clouds
  - sensor.yr_dewpoint_temperature
Thermostaat:
  name: Thermostaat
  entities:
  - sensor.toon
  - sensor.toontemp
  - sensor.toonpowerusage
  - sensor.toongasusage
  - sensor.toonprogramm
Insula:
  name: Insula
  entities:
  - switch.toon_prog_comfort
  - switch.toon_prog_sleep
  - switch.toon_prog_home
  - switch.toon_prog_away
weer_view:
  view: true
  name: Weer
  entities:
  - group.weer
toon_view:
  view: true
  name: Thermostaat
  entities:
  - group.thermostaat
switch_view:
  view: true
  name: Switches
  entities:
  - group.all_switches
  - group.insula

weer_view doesn't work?!?!

Traceback (if applicable):

Additional info:

Danielhiversen commented 7 years ago

Have you checked the log? Have you tried hass --script check_config ?

loewal commented 7 years ago

Hi Daniel,

Yes, of course I did. From within the ui and with your command below. No errors. Customize works only partially. Very strange! An dit did work before updating. Is there a change in how the values of platform yr are named?

I also noticed, that I got an error on the keyword “discovery”, so I had to remove it.


Part of configuration.yaml:

Checks for available updates

updater:

Discover some devices automatically

discovery:

recorder:

purge_days: 1

wemo:

static:

light:

platform: hue

host: 10.0.0.174

sensor:

yr weather conditions


customize.yaml

sensor.yr_symbol:

friendly_name: Actueel Weer

sensor.yr_temperature:

friendly_name: Temperatuur

sensor.yr_precipitation:

friendly_name: Neerslag

sensor.yr_pressure:

friendly_name: Luchtdruk

sensor.yr_wind_speed:

friendly_name: Wind

icon: mdi:speedometer

sensor.yr_wind_direction:

friendly_name: Windrichting

sensor.yr_humidity:

friendly_name: Luchtvochtigheid

sensor.yr_fog:

friendly_name: Mist

sensor.yr_cloudiness:

friendly_name: Bewolking

sensor.yr_low_clouds:

friendly_name: Wolken Laag

sensor.yr_medium_clouds:

friendly_name: Wolken Midden

sensor.yr_high_clouds:

friendly_name: Wolken Hoog

sensor.yr_dewpoint_temperature:

friendly_name: Dauwpunt

sensor.toon:

friendly_name: Toon

sensor.toonpowerusage:

friendly_name: Stroomverbruik

sensor.toongasusage:

friendly_name: Gasverbruik

sensor.toontemp:

friendly_name: Temperatuur

sensor.toonprogramm:

friendly_name: Programma Status

switch.toon_prog_comfort:

friendly_name: Comfort

switch.toon_prog_sleep:

friendly_name: Slapen

switch.toon_prog_home:

friendly_name: Thuis

switch.toon_prog_away:

friendly_name: Weg


groups.yaml

Weer:

name: Weer

entities:

Thermostaat:

name: Thermostaat

entities:

Insula:

name: Insula

entities:

weer_view:

view: true

name: Weer

entities:

toon_view:

view: true

name: Thermostaat

entities:

switch_view:

view: true

name: Switches

entities:

Could you check why the weer_view does NOT work?

Thank you!

Loe

Van: Daniel Høyer Iversen [mailto:notifications@github.com] Verzonden: donderdag 17 augustus 2017 20:00 Aan: home-assistant/home-assistant home-assistant@noreply.github.com CC: loewal lwalter@home.nl; Author author@noreply.github.com Onderwerp: Re: [home-assistant/home-assistant] yr view not working after update from 0.51.1 to 0.51.2 (#9022)

Have you checked the log? Have you tried hass --script check_config ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/9022#issuecomment-323148598 , or mute the thread https://github.com/notifications/unsubscribe-auth/AG87dw8Kx61rizY9IPid2ttfYHRaoaApks5sZH-vgaJpZM4O6F5y . https://github.com/notifications/beacon/AG87d7OxgM6m5pBTWZ3BCT4DAohzFzM2ks5sZH-vgaJpZM4O6F5y.gif

balloobbot commented 7 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

balloobbot commented 6 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍