Skip to content
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

LEVEL <0 warning #459

Closed
aski71 opened this issue Feb 12, 2022 · 9 comments
Closed

LEVEL <0 warning #459

aski71 opened this issue Feb 12, 2022 · 9 comments

Comments

@aski71
Copy link

aski71 commented Feb 12, 2022

Ich bekomme immer wieder diese Warnung:

hm-rpc.0 warn | State value to set for "hm-rpc.0.MEQ1471077.1.LEVEL" has value "-0.5" less than min "0"

Es handelt sich hierbei um einen Homematic Fenstermotor, den man tatsächlich mit -0.5 abschließt.
Der negative Wert ist hier also tatsächlich richtig und sollte keine Warnung erzeugen.

@foxriver76
Copy link
Collaborator

Please provide raw object

@aski71
Copy link
Author

aski71 commented Feb 17, 2022

{
  "type": "state",
  "common": {
    "def": 0,
    "type": "number",
    "read": true,
    "write": true,
    "min": 0,
    "max": 100,
    "states": {
      "-0.005": "LOCKED"
    },
    "unit": "%",
    "role": "level",
    "workingID": "WORKING",
    "name": "K-Motorfenster:1.LEVEL"
  },
  "native": {
    "CONTROL": "WINDOW.LEVEL",
    "DEFAULT": 0,
    "FLAGS": 1,
    "ID": "LEVEL",
    "MAX": 1,
    "MIN": 0,
    "OPERATIONS": 7,
    "SPECIAL": [
      {
        "ID": "LOCKED",
        "VALUE": -0.005
      }
    ],
    "TAB_ORDER": 0,
    "TYPE": "FLOAT",
    "UNIT": "100%"
  },
  "_id": "hm-rpc.0.MEQ1471077.1.LEVEL",
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  },
  "from": "system.adapter.hm-rpc.0",
  "user": "system.user.admin",
  "ts": 1557922200795
}

@foxriver76
Copy link
Collaborator

foxriver76 commented Feb 20, 2022

Òk, we need some special logic here, which corrects min/max if provided + special is provided and one of the special values is greater than max or less than min

and resepect that it will also cale with the 100% logic..

@foxriver76
Copy link
Collaborator

Bitte mal das Objekt mit 1.15.12 neu anlegen lassen und Feedback geben ob min nun korrekt ist.

@aski71
Copy link
Author

aski71 commented Apr 3, 2022

Sieht gut aus. Danke.

@Draexl
Copy link

Draexl commented Apr 19, 2022

Wurde damit auch das Thema behandelt das bei Heizthermostaten wenn sie auf "OFF" stehen (also 4,5) dies keinen Fehler im Log auswirft?

@foxriver76
Copy link
Collaborator

Kommt drauf an ob dies über ein SPECIAL Attribut kenntlich gemacht wird, kannst du mir ein solches Objekt zeigen?

@Draexl
Copy link

Draexl commented Apr 19, 2022

Wie es aussieht nicht....
Also im Log steht:
State value to set for "hm-rpc.1.INT0000010.1.SET_TEMPERATURE" has value "4.5" less than min "5.0"

Und die Objektwerte wären:
{ "type": "state", "common": { "name": "Heizungssteuerung Büro Thermostat.SET_TEMPERATURE", "def": "20.0", "type": "number", "read": true, "write": true, "min": "5.0", "max": "30.0", "unit": "°C", "role": "level.temperature", "smartName": false }, "native": { "UNIT": "�C", "MIN": "5.0", "MAX": "30.0", "OPERATIONS": 7, "FLAGS": 1, "ID": "SET_TEMPERATURE", "TAB_ORDER": 4, "TYPE": "FLOAT", "DEFAULT": "20.0", "CONTROL": "HEATING_CONTROL.SETPOINT" }, "_id": "hm-rpc.1.INT0000010.1.SET_TEMPERATURE", "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" }, "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1643195765691 }

@foxriver76
Copy link
Collaborator

Ne, ist dadurch leider nicht gefixt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants