SmartArduino / DoHome

97 stars 57 forks source link

can't discovery temp/humi sersor #14

Open henrykey opened 3 years ago

henrykey commented 3 years ago

Hi, everything looks fine but can't discover the temperature/humidity sensor. hass has found the component of dohome indicating from log message.

You are using a custom integration for dohomeswitch which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
8:32:01 PM – loader.py (WARNING) - message first occurred at 8:32:00 PM and shows up 4 times
Light is deprecated, modify DoHomeLight to extend LightEntity
8:32:00 PM – Light (WARNING)
SwitchDevice is deprecated, modify DoHomeSwitch to extend SwitchEntity
8:32:00 PM – Switch (WARNING)

and added code in configure.yaml as following:

dohome:
  discovery_ip: '192.168.23.255'   
  discovery_retry: 3

but nothing in entities or devices, what wrong with it? or i missed somthing? thanks

PS. for more info hassio 5.9 in rasberrypi. the temp/humi sensor works well with homekit and I tried both with or without homeit, got the same result of discovering nothing.

HoGC commented 3 years ago

You can try the latest version https://github.com/SmartArduino/DoHome/tree/master/DoHome_HassAssistant_Component

And if that doesn't work, you can open log custom_components/dohome/init.py

_LOGGER = logging.getLogger(__name__)
_LOGGER.setLevel('DEBUG')