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
Some more Hue lights #6936
Some more Hue lights #6936
Conversation
Add LCA008 (1600lm E27 bulb) and Iris gen4, see Discord.
Remove Hue-specific command.
Shut up eslint warning.
- Create `ZCL_WriteAttribute()` and `ZCL_SendCommand()` in spirit of `ZCL_ReadAttributes()`; - Move ZCL logic from `writeZclAttribute()` to `ZCL_WriteAtrribute()`; - Call `ZCL_SendCommand()` from `readZclAttribute()` and `writeZclAttribute()`.
Attribute is read-only.
Only update item when real productname has been found. Use the dummy assignment, to see offset in deCONZ log.
Compute offset from modelid and manufacturername, rather than parsing the 0xC1 from offset 0.
- Use `zcl:attr` and `zcl:cmd` instead of deprecated `zcl` for `fn`. - Hue motion sensor family: Remove `config/ledindication` and `config/usertest` from ZHALightLevel and ZHATemeprature resources. These attributes apply only to the ZHAPresence.
Don't use Qt here.
Don't use Qt here.
Display `productname` in API.
- Deprecate `"fn": "zcl"` in favour of `"fn": "zcl:attr"` and `"fn": "zcl:cmd"` at manup's request; - Define separate function for sending command from `read` and from `write`; - Handle no Qt in `zcl.cpp`.
I guess I like the proposed changes on the functions, especially as this presumably solves one of my experienced annoyances and I don't need to code it myself 🙂 Iirc from fiddling around back in the days, command usage will fail when involving any state changes. However, totally fine for me for the time being and saving it as stage 2 for later. |
@ebaauw Could you please also include a change for this particular code here? deconz-rest-plugin/thermostat.cpp Line 331 in 91df7d7
and make it This would allow using the read cmd for |
@SwoopX : 81376ca375823291359b0510969d8b86c88b4622 No idea what it does, but it compiles. |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a few minor comments, overall the PR looks pretty good to me.
Additional models
See Discord, #restapi-issues channel.
productname
Expose
productname
for "all" Hue devices exposed through DDF:modelid
andmanufacturername
items, instead of taking these from the 0xC1 response at offset 0. This way, only a single 0xC0 needs to be issued.cmd
in DDFread
andwrite
Add support for
cmd
(instead ofattr
) inread
andwrite
functions of item in DDF. Both take an optionaleval
to specify the command payload as hex string.ZCL_WriteAttribute()
andZCL_SendCommand()
tozcl.cpp
;WriteZCLAttribute()
indevice_access_fn.cpp
toZCL_WriteAttribute()
;ZCL_SendCommand()
fromReadZCLAttribute()
andWriteZCLAttribute()
to send the specified command instead of Read Attributes or Write Attributes.