PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 44 forks source link

Add support for Pressure sensor #230

Closed ojozef closed 2 years ago

ojozef commented 3 years ago

Hi, I would be nice to have support for pressure sensor from Domoticz if possible. Example status from domoticz:

/json.htm?type=devices&rid=30:

{
    "ActTime" : 1609717264,
    "AstrTwilightEnd" : "18:37",
    "AstrTwilightStart" : "05:50",
    "CivTwilightEnd" : "17:32",
    "CivTwilightStart" : "06:55",
    "DayLength" : "09:40",
    "NautTwilightEnd" : "18:05",
    "NautTwilightStart" : "06:22",
    "ServerTime" : "2021-01-03 15:41:04",
    "SunAtSouth" : "12:13",
    "Sunrise" : "07:23",
    "Sunset" : "17:04",
    "app_version" : "2020.2",
    "result" : 
    [
        {
            "AddjMulti" : 1.0,
            "AddjMulti2" : 1.0,
            "AddjValue" : 0.0,
            "AddjValue2" : 0.0,
            "BatteryLevel" : 255,
            "CustomImage" : 0,
            "Data" : "1024 hPa",
            "Description" : "",
            "Favorite" : 1,
            "HardwareID" : 5,
            "HardwareName" : "Dummy",
            "HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
            "HardwareTypeVal" : 15,
            "HaveTimeout" : false,
            "ID" : "00082030",
            "LastUpdate" : "2021-01-03 15:19:12",
            "Name" : "Pressure",
            "Notifications" : "false",
            "PlanID" : "0",
            "PlanIDs" : 
            [
                0
            ],
            "Protected" : false,
            "ShowNotifications" : true,
            "SignalLevel" : "-",
            "SubType" : "Barometer",
            "Timers" : "false",
            "Type" : "General",
            "TypeImg" : "gauge",
            "Unit" : 1,
            "Used" : 1,
            "XOffset" : "0",
            "YOffset" : "0",
            "idx" : "30"
        }
    ],
    "status" : "OK",
    "title" : "Devices"
}
PatchworkBoy commented 2 years ago

Apple doesn't provide a Barometer standalone service to use. It would just show as an unsupported device in Homekit. They're supported within the EVE app, but only as part of a combined temp / temp & humidity / temp & humidity & pressure accessory.