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.93k stars 30.99k forks source link

0.81.1 lovelace thermostat card not working with opentherm gateway hub #17954

Closed rytec-nl closed 6 years ago

rytec-nl commented 6 years ago

Home Assistant release with the issue: 0.81.1

Last working Home Assistant release (if known): 0.80.something

Operating environment (Hass.io/Docker/Windows/etc.): arch linux virtualenv

Component/platform: https://www.home-assistant.io/lovelace/thermostat/

Description of problem: The thermostat component does not seem to work with the new opentherm gateway hub It does not render and throws a javascrip error.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant): ui-lovelace.yaml:

- type: thermostat
  entity: climate.kamer_thermostaat

configuration.yaml:

opentherm_gw:
  device: /dev/ttyUSB1
  climate:
    name: kamer_thermostaat
    precision: 0.5
    floor_temperature: true  
  monitored_variables:
    - room_setpoint
    - room_temp
    - otgw_about
    - burner_hours
    - burner_starts
    - ch_water_temp
    - dhw_flow_rate
    - dhw_temp

Traceback (if applicable):

TypeError: stateObj.attributes.operation_list is undefined[Learn More] 8a696fdac4ce3eb749b3.chunk.js:1696 

the affected line:

<div class="modes">
   ${stateObj.attributes.operation_list.map(modeItem=>this._renderIcon(modeItem,mode))}
</div>

Additional information: Problems occurs on multiple platforms, firefox, chromium and android blaze

ghost commented 6 years ago

This issue was moved by fabaff to home-assistant/home-assistant-polymer#1915.