Hello! I have philips light candle 2 bulb, i got a token, set up a configuration but the device was never discovered.
here is my configuration
- platform: xiaomi_miio
name: Philips desk lamp
host: 192.168.1.70
token: ***
model: philips.light.candle2
and here is my log output
2021-03-12 22:09:37 DEBUG (SyncWorker_16) [miio.protocol] Unable to decrypt, returning raw bytes: b''
2021-03-12 22:09:37 DEBUG (SyncWorker_16) [miio.miioprotocol] Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x0e\n\xae\x7f\x00\x00\x02R' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('0e0aae7f')
ts = 1970-01-01 00:09:54
offset1 = 0
offset2 = 16
length = 16
checksum = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' (total 16)
2021-03-12 22:09:37 DEBUG (SyncWorker_16) [miio.miioprotocol] Discovered 0e0aae7f with ts: 1970-01-01 00:09:54, token: b'00000000000000000000000000000000'
2021-03-12 22:09:37 DEBUG (SyncWorker_16) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 1, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:09:37 ERROR (MainThread)
2021-03-12 22:09:37 DEBUG (SyncWorker_16) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:09:54, id: 1) << {'result': ['on', 0, 10, 1, 4], 'id': 1}
2021-03-12 22:10:07 DEBUG (SyncWorker_21) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 2, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:10:09 DEBUG (SyncWorker_21) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:10:26, id: 2) << {'result': ['on', 0, 10, 1, 4], 'id': 2}
2021-03-12 22:10:37 DEBUG (SyncWorker_23) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 3, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:10:37 DEBUG (SyncWorker_23) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:10:55, id: 3) << {'result': ['on', 0, 10, 1, 4], 'id': 3}
2021-03-12 22:11:07 DEBUG (SyncWorker_33) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 4, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:11:07 DEBUG (SyncWorker_33) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:11:25, id: 4) << {'result': ['on', 0, 10, 1, 4], 'id': 4}
2021-03-12 22:11:37 DEBUG (SyncWorker_9) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 5, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:11:37 DEBUG (SyncWorker_9) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:11:55, id: 5) << {'result': ['on', 0, 10, 1, 4], 'id': 5}
2021-03-12 22:12:07 DEBUG (SyncWorker_30) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 6, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:12:07 DEBUG (SyncWorker_30) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:12:25, id: 6) << {'result': ['on', 0, 10, 1, 4], 'id': 6}
2021-03-12 22:12:37 DEBUG (SyncWorker_7) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 7, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:12:37 DEBUG (SyncWorker_7) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:12:55, id: 7) << {'result': ['on', 0, 10, 1, 4], 'id': 7}
2021-03-12 22:13:07 DEBUG (SyncWorker_10) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 8, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:13:07 DEBUG (SyncWorker_10) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:13:25, id: 8) << {'result': ['on', 0, 10, 1, 4], 'id': 8}
2021-03-12 22:13:37 DEBUG (SyncWorker_12) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 9, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:13:37 DEBUG (SyncWorker_12) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:13:55, id: 9) << {'result': ['on', 0, 10, 1, 4], 'id': 9}
2021-03-12 22:14:07 DEBUG (SyncWorker_25) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 10, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:14:07 DEBUG (SyncWorker_25) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:14:25, id: 10) << {'result': ['on', 0, 10, 1, 4], 'id': 10}
2021-03-12 22:14:37 DEBUG (SyncWorker_0) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 11, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:14:37 DEBUG (SyncWorker_0) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:14:55, id: 11) << {'result': ['on', 0, 10, 1, 4], 'id': 11}
2021-03-12 22:15:07 DEBUG (SyncWorker_30) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 12, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:15:07 DEBUG (SyncWorker_30) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:15:25, id: 12) << {'result': ['on', 0, 10, 1, 4], 'id': 12}
2021-03-12 22:15:37 DEBUG (SyncWorker_32) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 13, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:15:37 DEBUG (SyncWorker_32) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:15:55, id: 13) << {'result': ['on', 0, 10, 1, 4], 'id': 13}
2021-03-12 22:16:07 DEBUG (SyncWorker_17) [miio.miioprotocol] 192.168.1.70:54321 >>: {'id': 14, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
2021-03-12 22:16:07 DEBUG (SyncWorker_17) [miio.miioprotocol] 192.168.1.70:54321 (ts: 1970-01-01 00:16:25, id: 14) << {'result': ['on', 0, 10, 1, 4], 'id': 14}
Please help me find what is wrong.
UPD: Device appears as an OBJECT not a DEVICE. Everything works fineā¦