hassio-addons/addon-node-red

Home Assistant starts before Node Red #485

Glazzanz posted onGitHub

Problem/Motivation

I am using Node-Red as middle aware between various devices, including light systems and alarms. I have previously used a standalone installation of Node-Red; but have opted to move to the addon.

However, within Node-Red I am using MQTT (node-red-contrib-mqtt-broker: mosca in) - when rebooting the host, all the entities provided via MQTT and Node-Red display as Entity not available: entity.name

In the logs of Home Assistant it reports that it is unable to connect to the MQTT broker, and wait to connect. It does eventually connect - but at this point I'm guessing there is no data to provide to Home Assistant, and hence the Entity is flagged as not available.

Expected behavior

Node-Red would start before home assistant.

Actual behavior

Node-Red starts after home assistant

Steps to reproduce

Proposed changes

The config.json for this add on is set to application (which means it will start after home assistant has started). If it was set to service it would start before home assistant


:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

posted by addons-assistant[bot] about 5 years ago

While I get your use case, we can't do that. The other way around, most people use Home Assistant as the authoritative endpoint for their entities, hence Home Assistant needs to start first.

This is not a problem I can solve for you, as we should follow the general use case.

posted by frenck about 5 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

posted by addons-assistant[bot] about 5 years ago

Fund this Issue

$0.00
Funded

Pull requests