alexander-vitishchenko / hc3-to-mqtt

Fibaro HC3 integration with Home Assistant & NodeRed
MIT License
31 stars 13 forks source link

Quickapp crashes immediately #58

Closed svdtoorren closed 10 months ago

svdtoorren commented 10 months ago

Describe the bug After uploading in a new HC3 system with a few sensors and one dimmer, the quickapp directly crashes. The following lines are visible in the HC3 log:

[03.02.2024] [21:20:01] [ERROR] [QUICKAPP34]: main.lua:71: attempt to index a nil value (field '?')

The required parameters are set as per documentation (except for username and password which are not required for the mqtt instance).

Environment:

Attach QuickApp logs [03.02.2024] [21:20:01] [DEBUG] [QUICKAPP34]: [03.02.2024] [21:20:01] [DEBUG] [QUICKAPP34]: ------- HC3 <-> MQTT BRIDGE [03.02.2024] [21:20:01] [DEBUG] [QUICKAPP34]: Version: 1.0.235 [03.02.2024] [21:20:01] [DEBUG] [QUICKAPP34]: (!) IMPORTANT NOTE FOR THOSE USERS WHO USED THE QUICKAPP PRIOR TO 1.0.191 VERSION: Your Home Assistant dashboards and automations need to be reconfigured with new enity ids. This is a one-time effort that introduces a relatively "small" inconvenience for the greater good (a) introduce long-term stability so Home Assistant entity duplicates will not happen in certain scenarios (b) entity id namespaces are now syncronized between Fibaro and Home Assistant ecosystems [03.02.2024] [21:20:01] [ERROR] [QUICKAPP34]: QuickApp crashed [03.02.2024] [21:20:01] [ERROR] [QUICKAPP34]: main.lua:71: attempt to index a nil value (field '?')

alexander-vitishchenko commented 10 months ago

Hi @svdtoorren,

It looks like you need to add one more variable to the QuickApp - “mqttConvention” and supply “home-assistant” value. Does it help?

svdtoorren commented 10 months ago

Hi @alexander-vitishchenko, you are completely right, thank you very much! I must have accidentally deleted it with the login fields.

Are there also alternatives available for the home-assistant setting, such as Domoticz?

alexander-vitishchenko commented 10 months ago

Not with this QuickApp - but I see some people register Domoticz devices at Home Assistant by using MQTT integration, and then manually adding devices on Home Assistant side, for example, like discussed here https://community.home-assistant.io/t/mqtt-from-domoticz-to-home-assistant/586612

Perhaps there could be simpler options that support devices auto-discovery, but I didn't find it.