jensweigele / ioBroker.yahka

Yet another HomeKit adapter for ioBroker
MIT License
132 stars 47 forks source link

Carbon dioxide sensor CarbonDioxideLevel value and StatusActive not displayed #87

Closed sonntam closed 5 years ago

sonntam commented 5 years ago

I'm using Yahka Version 0.9.0 and I'm trying to display the data of carbon dioxide concentration sensor that outputs values in ppm units.

In Yahka I configured a sensor device with the "CarbonDioxideSensor" Service-Type. The properties "CarbonDioxideLevel" and "CarbonDioxidePeakLevel" are assigned to ioBroker states. For testing I also tried to use the "const" output with a fixed value. But on the app the values are not shown (see screenshot below).

asset

The other part that does not work is the "StatusActive" property. It always shows as inactive on the iPhone. I tried using the constant values 1, true, "true".

The only thing that seems to work is the "CarbonDioxideDetected" property. If I put a constant "1" there an alarm will go off on my iPhone.

jensweigele commented 5 years ago

Can you please post a screenshot of the configuration?

sonntam commented 5 years ago

Sure, here you go:

This is the state in the object tree: mqtt.0.nodemcu.MH-Z19_Bedroom_634939.value screenshot 2019-01-06 19 58 02

Additionally this is the object's raw data object:

{
  "from": "system.adapter.mqtt.0",
  "ts": 1546289459781,
  "common": {
    "name": "nodemcu/MH-Z19_Bedroom_634939/value",
    "role": "variable",
    "desc": "mqtt server variable",
    "type": "number",
    "write": true,
    "read": true
  },
  "native": {
    "topic": "nodemcu/MH-Z19_Bedroom_634939/value"
  },
  "acl": {
    "object": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator",
    "state": 1636
  },
  "_id": "mqtt.0.nodemcu.MH-Z19_Bedroom_634939.value",
  "type": "state"
}

And this is the yahka config: screenshot 2019-01-06 20 02 00

jensweigele commented 5 years ago

Danke, Fehler liegt im Yahka-Adapter. Ich nehm es mit auf die Liste.

jensweigele commented 5 years ago

Mit dem aktuellen Master sollte das Problem behoben sein. Da ich einiges Umgestellt habe, wäre ich über Rückmeldungen, ob der Adapter an sich noch funktioniert dankbar!

sonntam commented 5 years ago

Sorry für die späte Antwort - bin jetzt erst dazu gekommen, es auszuprobieren.

Jetzt klappt es. Danke - gute Arbeit! Die neuen Optionen beim Signalmapping sind prima!