core: A/C device not showing up in SmartThings Integration

Home Assistant release with the issue:

Home Assistant 0.90

Last working Home Assistant release (if known): NA

Operating environment (Hass.io/Docker/Windows/etc.): Docker on Synology

Component/platform:

https://www.home-assistant.io/components/smartthings/

Description of problem: After release of 0.90 I tried once more to integrate the SmartThings component within my HA. Something I never want was to expose my instance of HA to the web. So 0.90 and the cloud connection allows me precisly that. So what I have done was:

1- Config the Remote Acess and get the https://url based to access from exterior as I already had the cloud account configured; 2- Configured base_url: with that url I got from Nabu\cloud integration; 3- Integrate the SmartThings component; 4- Everthing works fine here, till the moment, I try actually to use the devices; 5- Currently the only sensor\device I can see and integrate (as a valid entity is the my phone): image

6- for the AC’s the climate entity is never created, they appear as unavailable:

image

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

http: base_url: --> here I tried to expose two URLS :

1- base_url: https://<cloudkey>.ui.nabu.casa 2 - base_ur: https://hooks.nabu.casa/<key_available under webhooks for smarthings>

To refer that I had the chance to enable debugging for smarthings

logger:
  default: info
  logs:
    homeassistant.components.smartthings: debug

Traceback (if applicable):

The only errors I got at this point that can be related with this.

hu Mar 21 2019 11:18:34 GMT+0000 (Hora de Greenwich)
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 352, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/app/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/app/homeassistant/helpers/entity.py", line 255, in _async_write_ha_state
    attr = self.state_attributes or {}
  File "/usr/src/app/homeassistant/components/climate/__init__.py", line 218, in state_attributes
    self.hass, self.min_temp, self.temperature_unit,
  File "/usr/src/app/homeassistant/components/climate/__init__.py", line 514, in min_temp
    self.temperature_unit)
  File "/usr/src/app/homeassistant/util/temperature.py", line 28, in convert
    to_unit, TEMPERATURE))
ValueError: None is not a recognized temperature unit.

Any advices please?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 34 (9 by maintainers)

Most upvoted comments

Yeah it’s still missing the key capability attributes… @dbradmit what’s your take on this? The A/C units we modeled the integration around were populating the capability attributes (temperature and coolingSetPoint), this user’s devices don’t appear to be doing that.

It appears your issue is with a specific device type (climate), not that the entire integration isn’t working… The problem appears to be that the device isn’t returning a temperature unit, which is required and doesn’t have a default (how do we know if it’s Celsius or Fahrenheit?) What is the brand/model of your A/C units?

There’s an unrelated bug when using the cloud where you still need to set base_url to start with https://, but it can be anything. It seems you worked around that issue, but this isn’t something that should need to be done in the long-term.