justme-1968/homebridge-fhem

genericDeviceType HumiditySensor missing

Closed this issue · 1 comments

While HomeKit and even homebridge-fhem do support a service called HumiditySensor, this cannot be picked from the genericDeviceType drop-down menu within fhem. Instead, you would have to run the following fhem command manually:
attr meinSensor genericDeviceType HumiditySensor
followed by a mapping of the attributes, e.g.
attr <meinSensor> homebridgeMapping clear CurrentRelativeHumidity=humidity CurrentTemperature=temperature
(source: https://wiki.fhem.de/wiki/Alexa_und_Mappings#Temperatur-_und_Feuchtesensor)

Expected behavior: HumiditySensor should be available in the dropdown. Ideally, the required mappings are done automagically.

the idea for genericDeviceType is to have the most commonly used types like light, switch thermometer and thermostat and use aliases that are a little bit simpler than the homekit names and not homekit specific (the same attribute is also used for alexa-fhem).

you can still manually use every known name from your homekit version. just execute

attr <name> genericDeviceType HumiditySensor

in the fhem command box or with telnet.

if your device has a himitdy reading howebridge-fhem fill automatically create a HumiditySensor for you.