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

xiaomi repeater v1 #396

Closed
doreks opened this issue Oct 23, 2018 · 3 comments
Closed

xiaomi repeater v1 #396

doreks opened this issue Oct 23, 2018 · 3 comments
Labels

Comments

@doreks
Copy link

doreks commented Oct 23, 2018

hi,

i have home assistant releas 0.80.3 working with OS Linux homeassistant 4.14.70-v7+ #1144 SMP Tue Sep 18 17:34:46 BST 2018 armv7l GNU/Linux.
i have configured my xiaomi repeater into cofig yaml file :

- platform: xiaomi_miio name: Original Xiaomi Mi Smart WiFi Socket host: 192.168.1.253 token: e25e04cf****a************b3e318fad1

and im getting following error :

2018-10-23 16:33:33 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Unsupported device found! Please create an issue at https://github.com/rytilahti/python-miio/issues and provide the following data: xiaomi.repeater.v1

is there any way to add this device into hass?
thans for the support!

@syssi
Copy link
Collaborator

syssi commented Oct 31, 2018

You tried to integrate the Repeater as a "switch" component. This cannot work.

Your configuration should look like this:

device_tracker:
  - platform: xiaomi_miio
    host: 192.168.130.73
    token: YOUR_TOKEN

@doreks
Copy link
Author

doreks commented Nov 3, 2018

thanks syssi, now it's working.

on the other hands Im still having this messages into the log of hass:

2018-11-03 09:49:08 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform netatmo Traceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=hass.loop) File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for return fut.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/climate/netatmo.py", line 50, in setup_platform for module_name in data.get_module_names(): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/climate/netatmo.py", line 164, in get_module_names for module in self.thermostatdata.modules[self.device].values(): KeyError: 'salon' 2018-11-03 09:49:08 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform netatmo Traceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=hass.loop) File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for return fut.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/netatmo.py", line 80, in setup_platform if module_name not in data.get_module_names(): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/netatmo.py", line 304, in get_module_names self.update() File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/netatmo.py", line 333, in update for module in self.data: TypeError: 'NoneType' object is not iterable 2018-11-03 09:49:08 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform netatmo Traceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=hass.loop) File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for return fut.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/binary_sensor/netatmo.py", line 73, in setup_platform if not data.get_camera_names(): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/netatmo.py", line 82, in get_camera_names self.update() File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 324, in wrapper result = method(*args, **kwargs) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/netatmo.py", line 113, in update self.camera_data = pyatmo.CameraData(self.auth, size=100) File "/srv/homeassistant/lib/python3.5/site-packages/smart_home/Camera.py", line 79, in __init__ self.default_camera = list(self.cameras[self.default_home].values())[0] AttributeError: 'CameraData' object has no attribute 'default_home' 2018-11-03 09:49:11 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform netatmo Traceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=hass.loop) File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for return fut.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/netatmo.py", line 40, in setup_platform for camera_name in data.get_camera_names(): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/netatmo.py", line 82, in get_camera_names self.update() File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 324, in wrapper result = method(*args, **kwargs) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/netatmo.py", line 113, in update self.camera_data = pyatmo.CameraData(self.auth, size=100) File "/srv/homeassistant/lib/python3.5/site-packages/smart_home/Camera.py", line 79, in __init__ self.default_camera = list(self.cameras[self.default_home].values())[0] AttributeError: 'CameraData' object has no attribute 'default_home'

i have weather and termosthat netatmo configured into configuration.jaml:

- platform: netatmo station: Alcortwo Weather modules: indoor salon: - temperature - co2 - pressure - noise - humidity - wifi_status alcortwo outside: - temperature - humidity - battery_vp

`netatmo:
api_key: 506
secret_key: 11wf
D
*****mX
username: xxxro@gxxail.com
password: xxxxxxx

climate:
platform: netatmo
relay: salon
thermostat:
- room`

@syssi
Copy link
Collaborator

syssi commented Nov 3, 2018

This issue isn't python-miio related. Please create an issue at the home assistent repository.

@syssi syssi closed this as completed Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants