PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

How to configure motion sensors? #107

Closed ooii closed 5 years ago

ooii commented 7 years ago

Hi,

I have Fibaro FGMS-001 devices working great in domoticz. When using this plugin, I have the following behavior:

Since the readme file states that motion sensors are supported but also that they are in the todo list, I don't know if I can fix this or not?

Thanks for your help

PatchworkBoy commented 6 years ago

Would need Domoticz JSON API output for them when set as Motion sensors in Domoticz to investigate further.

ooii commented 6 years ago

Thanks for your response. Are you referring to that?

{
    "ActTime": 1517087560,
    "ServerTime": "2018-01-27 22:12:40",
    "Sunrise": "08:28",
    "Sunset": "17:38",
    "result": [{
        "AddjMulti": 1,
        "AddjMulti2": 1,
        "AddjValue": 0,
        "AddjValue2": 0,
        "BatteryLevel": 100,
        "CustomImage": 0,
        "Data": "Off",
        "Description": "",
        "Favorite": 0,
        "HardwareID": 39,
        "HardwareName": "USB Blanche",
        "HardwareType": "OpenZWave USB",
        "HardwareTypeVal": 21,
        "HaveDimmer": true,
        "HaveGroupCmd": true,
        "HaveTimeout": false,
        "ID": "00001400",
        "Image": "Light",
        "IsSubDevice": false,
        "LastUpdate": "2018-01-27 21:56:19",
        "Level": 0,
        "LevelInt": 0,
        "MaxDimLevel": 100,
        "Name": "PIR Entrée",
        "Notifications": "false",
        "PlanID": "0",
        "PlanIDs": [
            0
        ],
        "Protected": false,
        "ShowNotifications": true,
        "SignalLevel": "-",
        "Status": "Off",
        "StrParam1": "",
        "StrParam2": "",
        "SubType": "Switch",
        "SwitchType": "Motion Sensor",
        "SwitchTypeVal": 8,
        "Timers": "false",
        "Type": "Light/Switch",
        "TypeImg": "motion",
        "Unit": 1,
        "Used": 1,
        "UsedByCamera": false,
        "XOffset": "0",
        "YOffset": "0",
        "idx": "760"
    }],
    "status": "OK",
    "title": "Devices"
}
PatchworkBoy commented 6 years ago

Yup - ta...

PatchworkBoy commented 6 years ago

These should be fully supported already (they’re output is the same as mine, which work fine). If they’re not reflecting Domoticz status correctly, have you ensured MQTT is fully functional and configured correctly?