MacWyznawca / homebridge-mqtt-switch-tasmota

Plugin to HomeBridge optimized to work with firmware Sonoff-Tasmota, MQTT.
MIT License
57 stars 18 forks source link

This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. #63

Open worthdog opened 3 years ago

worthdog commented 3 years ago

Homebridge generates a warning in the log, I have not experienced any issues other than this message:

[@bluephlame/homebridge-mqtt-switch-tasmota] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info.

magebeans commented 3 years ago

I'm also running into this; anybody have a workaround?

Hpridham commented 6 days ago

I'm seeing this warning now. Funny, I don't think I had it before upgrading my version of node 18>20

Hpridham commented 6 days ago

Oh! I think the warning is because I have an offline product. It seems the code doesn't have proper condition handling for products that are in an unknown state.

Log:

[24/07/2024, 10:03:23] [Power cord 2] 'Power cord 2' is offline [24/07/2024, 10:03:23] [Power cord 2] Power cord 2 - Activity Set : undefined [24/07/2024, 10:03:23] [homebridge-mqtt-switch-tasmota] This plugin generated a warning from the characteristic 'Status Active': characteristic value expected boolean and received undefined. See https://homebridge.io/w/JtMGR for more info.