arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
466 stars 104 forks source link

Same config multipule warnings #554

Open JimmyEyeball opened 2 years ago

JimmyEyeball commented 2 years ago

I have recently had to reinstall Homebridge on a new Windows 10 machine just using the same config that I had been using with no changes I now seem to be getting multipule warnings even when the device is not being used.

Would really appreciate a point in the right direction of what has changed I will include the Logs and config below.

LOGS...

[23/04/2022, 13:02:07] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:02:07] [4 Button Remote] Warning: switch0 received [F9754E] which is not in configured values {"A56021":0} [23/04/2022, 13:02:07] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:02:07] [4 Button Remote] Warning: switch1 received [F9754E] which is not in configured values {"A56022":0} [23/04/2022, 13:02:07] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:02:07] [4 Button Remote] Warning: switch2 received [F9754E] which is not in configured values {"A56028":0} [23/04/2022, 13:02:07] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:02:07] [4 Button Remote] Warning: switch3 received [F9754E] which is not in configured values {"A56024":0} [23/04/2022, 13:02:45] [4 Button Remote] Received MQTT: tele/RF/RESULT = {"Time":"2022-04-23T13:02:46","RfReceived":{"Sync":12540,"Low":450,"High":1230,"Data":"F9754E","RfKey":"None"}} [23/04/2022, 13:02:45] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:02:45] [4 Button Remote] Warning: switch0 received [F9754E] which is not in configured values {"A56021":0} [23/04/2022, 13:02:45] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:02:45] [4 Button Remote] Warning: switch1 received [F9754E] which is not in configured values {"A56022":0} [23/04/2022, 13:02:45] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:02:45] [4 Button Remote] Warning: switch2 received [F9754E] which is not in configured values {"A56028":0} [23/04/2022, 13:02:45] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:02:45] [4 Button Remote] Warning: switch3 received [F9754E] which is not in configured values {"A56024":0} [23/04/2022, 13:03:06] [4 Button Remote] Received MQTT: tele/RF/RESULT = {"Time":"2022-04-23T13:03:07","RfReceived":{"Sync":12570,"Low":450,"High":1220,"Data":"F9754E","RfKey":"None"}} [23/04/2022, 13:03:06] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:03:06] [4 Button Remote] Warning: switch0 received [F9754E] which is not in configured values {"A56021":0} [23/04/2022, 13:03:06] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:03:06] [4 Button Remote] Warning: switch1 received [F9754E] which is not in configured values {"A56022":0} [23/04/2022, 13:03:06] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:03:06] [4 Button Remote] Warning: switch2 received [F9754E] which is not in configured values {"A56028":0} [23/04/2022, 13:03:06] [4 Button Remote] apply() function decoded message to [F9754E] [23/04/2022, 13:03:06] [4 Button Remote] Warning: switch3 received [F9754E] which is not in configured values {"A56024":0}

CONFIG

{ "accessory": "mqttthing", "type": "statelessProgrammableSwitch", "name": "4 Button Remote", "url": "mqtt://192.168.XXX.XXX", "username": "XXXX", "password": "XXXX", "caption": "4 Button Remote", "topics": { "getSwitch": [ { "topic": "tele/RF/RESULT", "apply": "return JSON.parse( message ).RfReceived.Data;" }, { "topic": "tele/RF/RESULT", "apply": "return JSON.parse( message ).RfReceived.Data;" }, { "topic": "tele/RF/RESULT", "apply": "return JSON.parse( message ).RfReceived.Data;" }, { "topic": "tele/RF/RESULT", "apply": "return JSON.parse( message ).RfReceived.Data;" } ] }, "switchValues": [ [ "A56021" ], [ "A56022" ], [ "A56028" ], [ "A56024" ] ], "restrictSwitchValues": [ 0 ], "logMqtt": true },

RF BRIDGE...

13:24:55.840 MQT: tele/RF/RESULT = {"Time":"2022-04-23T13:24:55","RfReceived":{"Sync":11030,"Low":380,"High":1080,"Data":"A56021","RfKey":"None"}}