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
Update DDFs for Hue motion sensors #7247
Conversation
Add `state/measured_value` and associated `capabilities` to ZHATemperature.
Add `state/measured_value` and associated `capabilities` to ZHATemperature.
Add `state/measured_value` and associated `capabilities` to ZHATemperature.
Add `state/measured_value` and associated `capabilities` to ZHATemperature.
If I understand this right the simplification, without parse function, here still works since the same is defined in the generic I'm still concerned with |
I'm irritated, why is |
I thought we wanted to replace it by the floating point value in
Yes, the generic item contains the
JSON defines:
I've been using Note that the generic item for |
And here starts the fun part of Unicode, the same text can be represented in multiple ways which are often not visually different: Copy paste the following in node and press enter :)
Here you might even see a visual difference depending on the font and rendering. In any case comparing such stuff safely would require proper extra Unicode compare functions which do all kinds of black magic behind the scenes. |
Yes, two characters, degree (option-shift-8 or option-* on macOS; hold the 0 on iPadOS) followed by capital C. Now that you mention it, I've seen the single character for degrees-celsius before, but kinda forgot about it. Looking from my iPad, it's beautiful (even more than the two characters), looking from my Mac (rendered in a fix-space font) is uglier than the latest IKEA switches (which is probably why I suppressed my memory of that character). We could of course prevent the variation, by adding the units to But seriously, what do you want to do: write out Incidentally, I only use the units as string literal to display these in HomeKit - no logic based on the string value. |
Yeah and there a dozens more ways to create a My wish for So from my perspective this should be ASCII only like ... inspired by GNU Units https://www.gnu.org/software/units/manual/html_node/Operators.html#Operators |
Changed to Are we OK with deprecating |
Cool thanks
In the long run l hope yes. But this needs to be prepared and discussed before marked for deprecation. Perhaps in the next developer session, other client developers need to be on board and understand the whole change. We also should find a coarse date when the actual removal of the old way happens (e.g. 1-2 years time to upgrade). This also means we should add proper documentation, which items are affected and what needs to be done to replace them. |
Removed the marks. |
This PR depends on #7252 and on #7253 (to show the floating point values).
Add
state/measured_value
and correspondingcapabilities
to the ZHATemperature sensor.Needs https://github.com/dresden-elektronik/deconz-rest-plugin for the C++ changes and the generic item definition for
cap/measured_value/quantity
.state/measured_value
, as float value in °C;cap/measured_value
items.min
andmax
are reported by the sensor;quantity
,substance
, andunit
are defined in the DDF;state/temperature
(integer value in 0.01 °C);config/offset
(also integer value in 0.01 °C). I do apply it tostate/measured_value
, but ultimately, we want this as a float values as well. Maybe introduceconfig/measured_value/offset
and deprecateconfig/offset
?