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

Add support for Xiaomi hoto.light.lamp #1387

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Conversation

goodbai1988
Copy link
Contributor

@goodbai1988 goodbai1988 commented Jun 22, 2024

Add support for Xiaomi Mijia Camping Lantern hoto.light.lamp

{ 
    # https://home.miot-spec.com/spec/hoto.light.lamp
    9387: ["Xiaomi", "Multifunctional Camping Lantern", "hoto.light.lamp"],
    "spec": [
        BaseConv("light", "light", mi="2.p.1"),
        BrightnessConv("brightness", mi="2.p.2", max=100),
        ColorTempKelvin("color_temp", mi="2.p.3", mink=2700, maxk=5000),
        MathConv("color", "number", mi="2.p.4", min=1, max=16777215),
        MapConv("mode", "select", mi="2.p.5", map={1: "Auto", 2: "Day", 3: "Color", 4: "Warmth", 5: "Leisure"}),
        BaseConv("battery", "sensor", mi="3.p.1"), 
        MapConv("main_ charging_state", "sensor", mi="3.p.2", map={0: "Not Plug", 1: "Plug In"}), 
        MapConv("sub_ charging_state", "sensor", mi="3.p.3", map={0: "No Equipment", 1: "Charging", 2: "Full", 3: "Inserted Without Charge"}), 
        BoolConv("delay_switch", "switch", mi="4.p.1"),
        MathConv("delay_time", "number", mi="4.p.2", min=1, max=60), 
    ],
}, 
hoto.light.lamp

Add support for Xiaomi Mijia Camping Lantern hoto.light.lamp
@AlexxIT AlexxIT added the enhancement New feature or request label Sep 4, 2024
@AlexxIT AlexxIT added this to the v4.0.6 milestone Sep 4, 2024
@AlexxIT AlexxIT merged commit 7eca94d into AlexxIT:master Sep 4, 2024
1 of 2 checks passed
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 4, 2024

Thanks!

AlexxIT added a commit that referenced this pull request Sep 4, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 4, 2024

@swas
Copy link
Contributor

swas commented Nov 18, 2024

Hello!

Can you add support for "hoto.light.lamp02"
https://home.miot-spec.com/spec/hoto.light.lamp02

It's the same product but for non CN server:

image

Thanks!!

@swas
Copy link
Contributor

swas commented Nov 18, 2024

Another question

Its possible to get a color picker (with a color wheel) instead of a textbox for selecting colors?

MathConv("color", "number", mi="2.p.4", min=1, max=16777215),

@AlexxIT
Copy link
Owner

AlexxIT commented Nov 18, 2024

I don't have any examples of RGB lamps. If you send multiple logs from your device - I can try to write RGB converter for it.

@swas
Copy link
Contributor

swas commented Nov 20, 2024

Thanks @AlexxIT

I send you a debug log changing the color of the lamp

The ble mac of the device is: d4f0ea8bdb9b

2024-11-20 16:56:24.826 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'write', 'data': {'light': True}}
2024-11-20 16:56:24.829 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command', 'data': b'{"method":"set_properties","params":[{"did":"1096235486","siid":2,"piid":1,"value":true}]}'}
2024-11-20 16:56:24.837 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command_ack', 'data': b'{"id":0,"result":[{"did":"1096235486","siid":2,"piid":1,"code":1,"ts":1732117856,"ret":0}]}'}
2024-11-20 16:56:25.256 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":939399585,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":1,"tid":237,"value":true}]}'}
2024-11-20 16:56:25.257 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'light': True}}
2024-11-20 16:56:25.565 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":1034784587,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":3,"piid":3,"tid":238,"value":1}]}'}
2024-11-20 16:56:25.566 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'sub_ charging_state': 'Charging'}}
2024-11-20 16:56:25.569 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1538058521,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":1,"control_type":2,"from":"","rpc_addr":0,"control_times":3,"total":400,"cost":400,"ret":0,"result":0}]}}'}
2024-11-20 16:56:25.573 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":883813522,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":1,"tid":237,"value":true},{"did":"1096235486","siid":3,"piid":3,"tid":238,"value":1}],"type":16}'}
2024-11-20 16:56:25.573 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'light': True, 'sub_ charging_state': 'Charging'}}
2024-11-20 16:56:27.447 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'write', 'data': {'brightness': 140}}
2024-11-20 16:56:27.451 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command', 'data': b'{"method":"set_properties","params":[{"did":"1096235486","siid":2,"piid":2,"value":55}]}'}
2024-11-20 16:56:27.459 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command_ack', 'data': b'{"id":0,"result":[{"did":"1096235486","siid":2,"piid":2,"code":1,"ts":1732117528,"ret":0}]}'}
2024-11-20 16:56:27.534 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":962239592,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":2,"tid":239,"value":55}]}'}
2024-11-20 16:56:27.535 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'brightness': 140.25}}
2024-11-20 16:56:27.764 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1325539524,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":2,"tid":239,"value":55}],"type":16}'}
2024-11-20 16:56:29.413 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":785187525,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":2,"control_type":2,"from":"","rpc_addr":0,"control_times":1,"total":0,"cost":0,"ret":0,"result":0}]}}'}
2024-11-20 16:56:38.577 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'write', 'data': {'color': 15095089.0}}
2024-11-20 16:56:38.582 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command', 'data': b'{"method":"set_properties","params":[{"did":"1096235486","siid":2,"piid":4,"value":15095089.0}]}'}
2024-11-20 16:56:38.586 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command_ack', 'data': b'{"id":0,"result":[{"did":"1096235486","siid":2,"piid":4,"code":1,"ts":1732118184,"ret":0}]}'}
2024-11-20 16:56:38.807 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":811282615,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":240,"value":15095089}]}'}
2024-11-20 16:56:38.808 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'color': 15095089}}
2024-11-20 16:56:39.315 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1551496528,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":240,"value":15095089}],"type":16}'}
2024-11-20 16:56:40.698 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":351274620,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":3,"piid":3,"tid":241,"value":2}]}'}
2024-11-20 16:56:40.699 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'sub_ charging_state': 'Full'}}
2024-11-20 16:56:40.964 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1865776530,"method":"properties_changed","params":[{"did":"1096235486","siid":3,"piid":3,"tid":241,"value":2}],"type":16}'}
2024-11-20 16:56:41.513 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1368521532,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":4,"control_type":2,"from":"","rpc_addr":0,"control_times":2,"total":200,"cost":200,"ret":0,"result":0}]}}'}
2024-11-20 16:56:58.911 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":373747674,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":1,"tid":242,"value":false}]}'}
2024-11-20 16:56:58.912 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'light': False}}
2024-11-20 16:56:59.125 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1490589560,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":1,"control_type":2,"from":"4","rpc_addr":0,"control_times":2,"total":300,"cost":300,"ret":0,"result":0}]}}'}
2024-11-20 16:56:59.127 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":873325561,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":1,"tid":242,"value":false}],"type":16}'}
2024-11-20 16:57:01.698 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":1433976682,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":243,"value":15288544}]}'}
2024-11-20 16:57:01.699 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'color': 15288544}}
2024-11-20 16:57:01.848 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":16352683,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":2,"tid":244,"value":1}]}'}
2024-11-20 16:57:01.848 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'brightness': 2.5500000000000003}}
2024-11-20 16:57:01.878 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1856384566,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":2,"tid":244,"value":1},{"did":"1096235486","siid":2,"piid":4,"tid":243,"value":15288544}],"type":16}'}
2024-11-20 16:57:01.878 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'color': 15288544}}
2024-11-20 16:57:02.298 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":1996315687,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":1,"tid":245,"value":true}]}'}
2024-11-20 16:57:02.299 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'light': True}}
2024-11-20 16:57:02.534 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1699272568,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":4,"control_type":2,"from":"4","rpc_addr":0,"control_times":1,"total":200,"cost":200,"ret":0,"result":0},{"did":"1096235486","siid":2,"aiid":0,"piid":2,"control_type":2,"from":"4","rpc_addr":0,"control_times":1,"total":300,"cost":100,"ret":0,"result":0},{"did":"1096235486","siid":2,"aiid":0,"piid":1,"control_type":2,"from":"4","rpc_addr":0,"control_times":2,"total":400,"cost":300,"ret":0,"result":0}]}}'}
2024-11-20 16:57:02.535 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1861036569,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":1,"tid":245,"value":true}],"type":16}'}
2024-11-20 16:57:04.510 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":1640441691,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":246,"value":4843055}]}'}
2024-11-20 16:57:04.511 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'color': 4843055}}
2024-11-20 16:57:04.745 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1615206571,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":2,"tid":244,"value":1},{"did":"1096235486","siid":2,"piid":4,"tid":246,"value":4843055}],"type":16}'}
2024-11-20 16:57:04.745 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'brightness': 2.5500000000000003, 'color': 4843055}}
2024-11-20 16:57:06.393 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1496679572,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":4,"control_type":2,"from":"4","rpc_addr":0,"control_times":1,"total":0,"cost":0,"ret":0,"result":0},{"did":"1096235486","siid":2,"aiid":0,"piid":2,"control_type":2,"from":"4","rpc_addr":0,"control_times":2,"total":400,"cost":200,"ret":0,"result":0}]}}'}
2024-11-20 16:57:07.869 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":1360755697,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":248,"value":15095854}]}'}
2024-11-20 16:57:07.869 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'color': 15095854}}
2024-11-20 16:57:08.043 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":114119574,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":248,"value":15095854}],"type":16}'}
2024-11-20 16:57:09.144 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1758000575,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":4,"control_type":2,"from":"4","rpc_addr":0,"control_times":1,"total":100,"cost":100,"ret":0,"result":0}]}}'}
2024-11-20 16:57:10.049 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'write', 'data': {'color': 15095855.0}}
2024-11-20 16:57:10.055 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command', 'data': b'{"method":"set_properties","params":[{"did":"1096235486","siid":2,"piid":4,"value":15095855.0}]}'}
2024-11-20 16:57:10.058 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command_ack', 'data': b'{"id":0,"result":[{"did":"1096235486","siid":2,"piid":4,"code":1,"ts":1732118226,"ret":0}]}'}
2024-11-20 16:57:10.236 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":629059703,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":249,"value":15095855}]}'}
2024-11-20 16:57:10.237 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'color': 15095855}}
2024-11-20 16:57:10.244 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":667944577,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":249,"value":15095855}],"type":16}'}
2024-11-20 16:57:11.102 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'write', 'data': {'color': 15095856.0}}
2024-11-20 16:57:11.107 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command', 'data': b'{"method":"set_properties","params":[{"did":"1096235486","siid":2,"piid":4,"value":15095856.0}]}'}
2024-11-20 16:57:11.112 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command_ack', 'data': b'{"id":0,"result":[{"did":"1096235486","siid":2,"piid":4,"code":1,"ts":1732118229,"ret":0}]}'}
2024-11-20 16:57:11.239 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":1300164707,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":250,"value":15095856}]}'}
2024-11-20 16:57:11.239 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'color': 15095856}}
2024-11-20 16:57:11.348 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1363745580,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":4,"tid":250,"value":15095856}],"type":16}'}
2024-11-20 16:57:12.443 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":1657742581,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":4,"control_type":2,"from":"","rpc_addr":0,"control_times":1,"total":100,"cost":100,"ret":0,"result":0},{"did":"1096235486","siid":2,"aiid":0,"piid":4,"control_type":2,"from":"","rpc_addr":0,"control_times":2,"total":200,"cost":200,"ret":0,"result":0}]}}'}
2024-11-20 16:57:15.419 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'write', 'data': {'light': False}}
2024-11-20 16:57:15.423 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command', 'data': b'{"method":"set_properties","params":[{"did":"1096235486","siid":2,"piid":1,"value":false}]}'}
2024-11-20 16:57:15.430 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/command_ack', 'data': b'{"id":0,"result":[{"did":"1096235486","siid":2,"piid":1,"code":1,"ts":1732118234,"ret":0}]}'}
2024-11-20 16:57:15.509 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'central/report', 'data': b'{"id":1405875717,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":1,"tid":251,"value":false}]}'}
2024-11-20 16:57:15.509 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.29] {'uid': 'd4f0ea8bdb9b', 'did': '1096235486', 'msg': 'on_report', 'data': {'light': False}}
2024-11-20 16:57:15.743 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":2032461583,"method":"properties_changed","params":[{"did":"1096235486","siid":2,"piid":1,"tid":251,"value":false}],"type":16}'}
2024-11-20 16:57:18.493 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.29] {'topic': 'miio/report', 'data': b'{"id":329555584,"method":"_async.stat","params":{"version":1,"btstat_props":[{"did":"1096235486","siid":2,"aiid":0,"piid":1,"control_type":2,"from":"","rpc_addr":0,"control_times":1,"total":0,"cost":0,"ret":0,"result":0}]}}'}

@AlexxIT
Copy link
Owner

AlexxIT commented Nov 20, 2024

Please show how looks like RED color, GREEN color and BLUE color.

@swas
Copy link
Contributor

swas commented Nov 20, 2024

Red: 16711680
Green: 65280
Blue: 255

It's looks like decimal color

@AlexxIT
Copy link
Owner

AlexxIT commented Nov 21, 2024

Thanks. Let's continue here #1396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants