Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Getting Ikea motion sensors to trigger alarm mqtt #6

Open
woodgieboodgie opened this issue Mar 8, 2021 · 1 comment
Open

Getting Ikea motion sensors to trigger alarm mqtt #6

woodgieboodgie opened this issue Mar 8, 2021 · 1 comment

Comments

@woodgieboodgie
Copy link

Hello,

I am hoping your plugin will allow me to setup the Ikea Tradfri motion sensors to trigger the alarm.

Is this possible and if so do you have any handy hints as to how I can get this going?

@woodgieboodgie
Copy link
Author

{
"bridge": {
"name": "Homebridge",
"username": "00:00:00:1A3:D8",
"port": 51000,
"pin": "988-88-888"
},
"accessories": [
{
"name": "Homeqtt",
"accessory": "homebridge-homeqtt-alarm",
"debug": true,
"mqttConfig": {
"url": "mqtt://localhost:1883"
},
"alarmTopics": {
"messageTopic": "myalarm",
"setTargetStateTopic": "alarm/target",
"getCurrentStateTopic": "alarm/current"
},
"alarmSettings": {
"targetStates": {
"stayArm": true,
"awayArm": true,
"nightArm": true
}
},
"sensor": [
{
"enabled": true,
"allowStay": true,
"allowAway": true,
"allowNight": true
}
],
"keyfob": false,
"keyfobs": [
{
"enabled": false,
"buttons": [
{
"enabled": false
}
]
}
],
"siren": {
"enabled": false
}
},
{
"accessory": "mqttthing",
"type": "occupancySensor",
"name": "IKEA motion sensor 2",
"topics": {
"getOccupancyDetected": {
"topic": "zigbee2mqtt/hexcode",
"apply": "return JSON.parse(message).occupancy;"
},
"getBatteryLevel": {
"topic": "zigbee2mqtt/hexcode",
"apply": "return JSON.parse(message).battery;"
}
},
"integerValue": true,
"logMqtt": true
}
],
"platforms": [
{
"name": "Config",
"port": 8555,
"platform": "config"
}
]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant