Closed Seraphis411 closed 4 years ago
Can you please add the object definition of the created object for both cases?
You get them at "Objects" and then using the "pensil" icon in the line of the object and then copy the JSON from "Raw" Tab please. Thank you
{
"from": "system.adapter.homee.0",
"ts": 1536686008972,
"common": {
"name": "Bad Rollladen.Position",
"type": "number",
"unit": "%",
"role": "level",
"min": 0,
"max": 100,
"read": true,
"write": true,
"custom": {
"homee.0": {
"enabled": true
}
}
},
"native": {
"id": 106,
"node_id": 16,
"type": 15
},
"acl": {
"object": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"state": 1636
},
"_id": "homee.0.ElectricMotorMeteringSwitch-16.Position-106",
"type": "state"
}
{
"type": "state",
"common": {
"name": "Bad Rollladen.ShutterBlindMode",
"type": "number",
"min": 0,
"max": 4,
"read": true,
"write": true,
"role": "level.blind",
"custom": {
"homee.0": {
"enabled": true
}
}
},
"native": {
"id": 113,
"node_id": 16,
"type": 112
},
"from": "system.adapter.homee.0",
"ts": 1536686008975,
"_id": "homee.0.ElectricMotorMeteringSwitch-16.ShutterBlindMode-113",
"acl": {
"object": 1636,
"state": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator"
}
}
Please check 1.0.0 from GitHub
fixed, no need for further changes
The role for the state "Position" (0-100%) is at the moment "level", but should better be "level.blind".
The state "ShutterBlindMode" instead is a state which gets set one time and defines if the connected device is a jalousie, a shutter blind, a garage door... It's function is comparable to the state "switch type" and should therefore also be changed to the role "sensor".