question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yeelight dual control module issue

See original GitHub issue
Logger: custom_components.xiaomi_miot.switch
Source: custom_components/xiaomi_miot/__init__.py:1031
Integration: Xiaomi Miot Auto (documentation, issues)
First occurred: 0:52:57 (6 occurrences)
Last logged: 0:54:07

Room First Switch Service: Got MiioException while fetching the state: Unable to discover the device 172.16.55.96, mapping: {'switch.on': {'siid': 2, 'piid': 1}, 'switch.mode': {'siid': 2, 'piid': 2}, 'switch-2.mode': {'siid': 2, 'piid': 3}, 'extension.interlock': {'siid': 4, 'piid': 1}, 'extension.flash': {'siid': 4, 'piid': 2}, 'extension.rc_list': {'siid': 4, 'piid': 3}, 'extension.rc_list_for_del': {'siid': 4, 'piid': 4}, 'extension.toggle': {'siid': 4, 'piid': 5}, 'switch-3.on': {'siid': 3, 'piid': 1}, 'switch-3.mode': {'siid': 3, 'piid': 3}}, max_properties: 10
Room Second Switch Service: Got MiioException while fetching the state: Unable to discover the device 172.16.55.96, mapping: {'switch-3.on': {'siid': 3, 'piid': 1}, 'switch-3.mode': {'siid': 3, 'piid': 3}, 'extension.interlock': {'siid': 4, 'piid': 1}, 'extension.flash': {'siid': 4, 'piid': 2}, 'extension.rc_list': {'siid': 4, 'piid': 3}, 'extension.rc_list_for_del': {'siid': 4, 'piid': 4}, 'extension.toggle': {'siid': 4, 'piid': 5}, 'switch.on': {'siid': 2, 'piid': 1}, 'switch.mode': {'siid': 2, 'piid': 2}, 'switch-2.mode': {'siid': 2, 'piid': 3}}, max_properties: 10
Logger: homeassistant.config_entries
Source: helpers/entity_component.py:181
First occurred: 1:00:10 (96 occurrences)
Last logged: 1:44:26

Error unloading entry Room for water_heater
Error unloading entry Room for device_tracker
Error unloading entry Room for remote
Error unloading entry Room for number
Error unloading entry Room for select
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 443, in async_unload
    result = await component.async_unload_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 127, in async_unload_entry
    return await component.async_unload_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 181, in async_unload_entry
    raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
miiocli device --ip 172.16.55.96 --token 6e44c868c134ba6e4d0e621e236d5a14 info
Model: yeelink.switch.sw1
Hardware version: esp32
Firmware version: 2.0.6_0012

miiocli yeelightdualcontrolmodule --ip 172.16.55.96 --token 6e44c868c134ba6e4d0e621e236d5a14 status
First Switch Status: True
First Switch Default State: False
First Switch Delay: -1
Second Switch Status: True
Second Switch Default State: False
Second Switch Delay: -1
Interlock: False
Flex Mode: 1
RC list: []

miiocli yeelightdualcontrolmodule --ip 172.16.55.96 --token 6e44c868c134ba6e4d0e621e236d5a14on first
Turn Switch.First switch on
[{'did': 'switch_1_state', 'siid': 2, 'piid': 1, 'code': 0}]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
JoNy202commented, Oct 11, 2021

Works great. Thanks!

1reaction
JoNy202commented, Oct 3, 2021

miot auto send request get_properties with parameters

[{'did': 'prop.2.1', 'siid': 2, 'piid': 1}, {'did': 'prop.2.2', 'siid': 2, 'piid': 2}, {'did': 'prop.2.3', 'siid': 2, 'piid': 3}, {'did': 'prop.4.1', 'siid': 4, 'piid': 1}, {'did': 'prop.4.2', 'siid': 4, 'piid': 2}, {'did': 'prop.4.3', 'siid': 4, 'piid': 3}, {'did': 'prop.4.4', 'siid': 4, 'piid': 4}, {'did': 'prop.4.5', 'siid': 4, 'piid': 5}]

which leads to the device freezing for a few seconds

when i send request get_properties with parameters

[{'did': 'prop.2.1', 'siid': 2, 'piid': 1}, {'did': 'prop.2.2', 'siid': 2, 'piid': 2}, {'did': 'prop.2.3', 'siid': 2, 'piid': 3}, {'did': 'prop.4.1', 'siid': 4, 'piid': 1}, {'did': 'prop.4.2', 'siid': 4, 'piid': 2}, {'did': 'prop.4.3', 'siid': 4, 'piid': 3}]

everything is fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Relay Dual control module errors - Yeelight Forum
I've recently bought two devices and both of them presents the same error. when I connect the module without using the external switches...
Read more >
Xiaomi Yeelight Smart Dual Control Module - Ecovill Trading Kft.
Bemutatjuk a Xiaomi 2 kimenetes dual control okos eszközét.Az okosotthonok szakértője.Okos otthon, okos kütyük, világítás, fűtés - hűtés, ...
Read more >
Yeelight Smart Dual Control Module (yeelink.switch.sw1 ...
yeelink.switch.sw1 is discover by HA automatically but after pasting token there is a warning about unknown model and device can not be ...
Read more >
Has anyone wired a yeelight dual control module for a socket ...
I'm looking to control a device in mi home but I'm in Ireland and we have 3 pin plugs.
Read more >
Yeelight smart dual controle module (switch)
Somebody got the Yeelight smart dual control module working in HA?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found