This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 783
Group functions for rollershutters show wrong value #1845
Comments
Looks indeed like a bug to me, happy to accept your fix as a PR! |
hazzeh
added a commit
to hazzeh/smarthome
that referenced
this issue
Jul 10, 2016
When setting Decimaltype state for a Rollershutter item the state should be converted to PercentType. Otherwise the group functions will present an error of factor 100. Fixes eclipse-archived#1845 Signed-off-by: Hans Hazelius <hans@hazelius.se>
hazzeh
added a commit
to hazzeh/smarthome
that referenced
this issue
Jul 10, 2016
When setting DecimalType state for a Rollershutter item, the state should be converted to PercentType. Otherwise the group functions will present an error of factor 100. Fixes eclipse-archived#1845 Signed-off-by: Hans Hazelius <hans@hazelius.se>
hazzeh
added a commit
to hazzeh/smarthome
that referenced
this issue
Jul 10, 2016
When setting DecimalType state for a Rollershutter item, the state should be converted to PercentType. Otherwise the group functions will present an error of factor 100. Fixes eclipse-archived#1845 Signed-off-by: Hans Hazelius <hans@hazelius.se>
Could this be related to #1514?
|
Yes, it seems to be the same problem. My PR makes the same change for RolleshutterItem as #1514 did for DimmerItem. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There is a "bug" for the group functions (MAX/MIN/AVG..) for rollershutters I think.
Or is it by design?
When using group functions, for example MAX, the group value will be in decimal, not percent.
items:
Group:Rollershutter:MAX gBlinds "Blinds"
rest:
{
"members": [
{
"link": "http://localhost:8080/rest/items/blind1",
"state": "59",
"type": "RollershutterItem",
"name": "blind1",
"label": "Blinds",
"tags": [],
"groupNames": [
"gBlinds"
]
}],
"groupType": "Rollershutter",
"link": "http://localhost:8080/rest/items/gBlinds",
"state": "0.59000000",
"type": "GroupItem",
"name": "gBlinds",
"label": "Blinds",
"category": "rollershutter",
"tags": [],
"groupNames": []
}
If it is a bug, I've got a fix here: https://github.com/hazzeh/smarthome/tree/decmaltype_for_rollershu
The text was updated successfully, but these errors were encountered: