-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Power On Behaviour Packet Sniff - TS0505B / _TZB210_tmi0rihb "Zigbee 3.0 5 in 1 LED Strip Controller Model LM052" #16325
Power On Behaviour Packet Sniff - TS0505B / _TZB210_tmi0rihb "Zigbee 3.0 5 in 1 LED Strip Controller Model LM052" #16325
Comments
I now have a Tuya Zigbee Gateway and I have been able to set the "Do Not Disturb" feature for this LED controller. I will attempt the sniff the traffic over the next few days to see if this helps you figure out the required setting. One thing worth noting is that Do Not Disturb is an on or off setting, there's no option to define the previous state. It also work different to what I expected - when the feature is enabled and you turn power back on, the LED strip briefly lights up for around 5-7 seconds and then turns off. It does this no matter what state the light was previously in. |
Packet has now been sniffed! Hopefully the attached packet trace will help you figure out the required setting @Koenkk tuya_TZB210_tmi0rihb_PwOnSetting.pcapng.zip Decryption key is: 5be76546b74e7add78c0dc72dd0a56e4 Packets 46 and 158 are the off messages sent when I press save in the above screenshot. Packet 106 and 192 are the on messages. Good luck and thanks in advance! |
@jarrah31 could you find out the data point of |
Hi @Koenkk, thanks for your help! The data point for |
Can you try with: const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['TS0505B'],
model: 'TS0505B',
vendor: 'TuYa',
description: 'Zigbee RGB+CCT light',
whiteLabel: [{vendor: 'Mercator Ikuü', model: 'SMD4106W-RGB-ZB'},
{vendor: 'TuYa', model: 'A5C-21F7-01'}, {vendor: 'Mercator Ikuü', model: 'S9E27LED9W-RGB-Z'},
{vendor: 'Aldi', model: 'L122CB63H11A9.0W', description: 'LIGHTWAY smart home LED-lamp - bulb'},
{vendor: 'Lidl', model: '14153706L', description: 'Livarno smart LED ceiling light'},
{vendor: 'Zemismart', model: 'LXZB-ZB-09A', description: 'Zemismart LED Surface Mounted Downlight 9W RGBW'},
{vendor: 'Feconn', model: 'FE-GU10-5W', description: 'Zigbee GU10 5W smart bulb'},
],
extend: extend.light_onoff_brightness_colortemp_color(
{colorTempRange: [153, 500], disableColorTempStartup: true, disablePowerOnBehavior: true}),
toZigbee: [...extend.light_onoff_brightness_colortemp_color(
{colorTempRange: [153, 500], disableColorTempStartup: true, disablePowerOnBehavior: true}).toZigbee, tz.tuya_do_not_disturb],
exposes: [...extend.light_onoff_brightness_colortemp_color(
{colorTempRange: [153, 500], disableColorTempStartup: true, disablePowerOnBehavior: true}).exposes,
exposes.binary('do_not_disturb', ea.STATE_SET, true, false)
.withDescription('Do not disturb mode'),
],
meta: {applyRedFix: true, enhancedHue: false},
};
module.exports = definition;
external_converters:
- ext_converter.js
|
Thanks @Koenkk, I can confirm that One more question if I may - I set the The same is true if I set Is it perhaps because the device is running as an external converter and all will be ok once it's properly integrated? This is my config just in case it helps:
|
z2m should read the state when the device is powered off again, but only if z2m detected the device as being OFF. Could you provide me the debug log of this? See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable debug logging. |
Debug and herdsman logs in the following log files. I've added comments to show what I did at each stage of the logs to hopefully make it easier to follow. |
This seems to be a bug of the device firmware:
The device responds its state with:
And onOff 1 means |
Great, thanks for finding this out, I will report it back to the manufacturer! Thank you also for adding the power_on_behaviour. I'll be happy to test a dev version with this new feature when available. |
Fixed by Koenkk/zigbee-herdsman-converters#5444, Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html) |
Hi Jarrah, how do you get the encryption key of your tuya hub? I'd like to sniff the traffic from the tuya app to compare it to z2m. Thanks |
I sniffed the key out with a CC2531 when a device joins the network using instructions found here: https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html#prerequisites |
Sorry guys to talk in here but I have the same device and I'm using in ZHA and I'm not able to change DND. |
What happened?
Hi Koenkk,
Would you be able to help me add power_on_behavior for the Laimi / Tuya TS0505B, _TZB210_tmi0rihb device please? (originally added as a new device here: #12168)
I contacted the Laimi manufacturer to ask if the device supported power_on_behavior, and they replied with the following:
Unfortunately I don't have a Tuya hub to sniff the packets when this option is set, but I'm ready and willing to run any test commands or external_converters on a dev zigbee2mqtt that I have this device paired to. If this isn't possible, I'm willing to buy the Tuya hub to help get this working.
Thanks in advance!
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.29.2
Adapter firmware version
20221102
Adapter
zzh
Debug log
No response
The text was updated successfully, but these errors were encountered: