-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[somfytahoma] Use QuantityType to set channels linked to item of type Number with a dimension #10285
Comments
Considering the attribute name |
Units are automatically converted to OH ones. This does the Regarding your question about |
The automatic type conversion might be extended by checking the |
That is exactly what I would like to fix.
|
Yes, that is the idea. |
Can I assume that all temperature states and target temperature states are in Celcius, humidity state in %, energy state in Wh and luminance state in ??? |
Yes, I see that information when "getSetup" HTTP call is executed. |
Luminance is returned in luxes (Lux), energy state might be either in Watts (W) - the actual power consumption or in WattHours (Wh) - the total power consumption. |
I have reverse engineered all the values from Tahoma they are here: |
I implemented something working well for the device sensors. |
I would go for the first option - set the degree Celsius as default. |
Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
Fix #10291 Fix #10285 Signed-off-by: Laurent Garnier <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: John Marshall <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
As I already mentioned in another place, the binding defines channels for items of type Number with a dimension like for example
Number:Temperature
but these channels are set using a simpleDecimalType
without specifying any unit. AQuantityType
should be used and the unit should be set.Here are the list of channel types concerned:
@octa22 are the units adjustable somewhere for the Tahoma system ? Or are there fixed and the API can only return one unit for a particular state ?
Could you provide the unit used by the API for each API state used to set these 6 channels ?
We could then use a QuantityType to set the channel value rather than a DecimalType.
Could you identity too for which one the API is providing a device attribute
core:MeasuredValueType
defining the unit of the state ? I agree with you that it is apparently not always present but I see it for example for the temperature sensor (5th channel in my list) and the energy consumption sensor (6th channel in my list). This could be used at least when present.The text was updated successfully, but these errors were encountered: