I found a possible bug in MQTT Hub.
{
"onoff": {
"capability": "onoff",
"stateTopic": "home/e04b4100adac0000000000007bac0000_m/status",
"setTopic": "",
"valueTemplate": "$.pir_detected",
"outputTemplate": "",
"displayName": "Motion"
}
}
This will correctly reflect the state of motion sensor as a light switch and then if I replace
"onoff": {
"capability": "onoff",
with
"alarm_motion": {
"capability": "alarm_motion",
Then everything works correctly for a while. I did have it revert to not working once. I had it powered off, so I am not sure if that was causing the re-failure. I was able to make 2 sensors work using this process. How do I log this issue as I am new to Homey.