logo elektroda
logo elektroda
X
logo elektroda

[Solved] Sonoff + AM2301 humidity sensor + Tasmota + Homebridge = Apple Home

ufoludek75 1443 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17707452
    ufoludek75
    Level 6  
    How do I start the automation „when the humidity is above 70%”?

    I have: Sonoff RF + Tasmota 6.4.1 + AM2301 + Homebridge + homebridge-mqtt-humidity-tasmota + Apple Home

    As I understand it, this cannot be done exclusively in the Home app. So I did the automation in the Fibaro app. The scene responds to me „any change in humidity”, I can't get the scene to run „when the humidity is above 70%”.

    Where is the error? What, what application are you using to build automation of this type?

    Greetings!
  • ADVERTISEMENT
  • #2 17722406
    xury
    Automation specialist
    A cosmic combination. In domoticz this is child's play.
  • ADVERTISEMENT
  • #3 17743520
    ufoludek75
    Level 6  
    Hello

    However, if anyone had the same problem and was looking for a solution.... :D

    1) In homebridge we use the plugin 'mqttthing'.
    2) In the homebridge config we use the notation/configuration

    {
    "accessory": "mqttthing",
    "type": "humiditySensor",
    "name": "humidity",
    "caption": "Sonoff",
    "topics":{
    "getCurrentRelativeHumidity":{
    "topic": "tele/ sonoff_06 /SENSOR",
    "apply": "return JSON.parse(message). AM2301 .Humidity.toFixed(1);"
    }
    }
    }
    where elements in bold are obviously elements to be changed/adapted

    3) We build the automation in an app like FIBARO for HomeKit Devices or something similar.

    4) The automation itself must be built according to the principle: WHEN any change in humidity (not a specific value!) IF humidity between e.g. 45% and 100% THEN....
  • #4 17750401
    ufoludek75
    Level 6  
    I solved my problem as described above :)
ADVERTISEMENT