Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context store setup #4

Open
allanjthorne opened this issue Apr 8, 2024 · 1 comment
Open

Context store setup #4

allanjthorne opened this issue Apr 8, 2024 · 1 comment
Labels
question Further information is requested

Comments

@allanjthorne
Copy link

Describe Your Problem:
Flow variables are not kept across reboots.

Logs:
[09/04/2024, 09:02:44] [Node Red Platform] Child bridge process ended
[09/04/2024, 09:02:44] [Node Red Platform] Process Ended. Code: 1, Signal: null
[09/04/2024, 09:03:01] [Node Red Platform] Initializing NodeRedHomebridgePlugin platform...
[09/04/2024, 09:03:01] [Node Red Platform] Initializing child bridge 0E:A8:C4:6F:C6:96
[09/04/2024, 09:03:01] Loading 10 accessories...
[09/04/2024, 09:03:05] [Node Red Platform] Launched child bridge with PID 70185
[09/04/2024, 09:03:08] [Node Red Platform] Loaded @helander/homebridge-node-red v2.2.0 child bridge successfully
[09/04/2024, 09:03:08] [Node Red Platform] Finished initializing platform: Node Red Platform
[09/04/2024, 09:03:08] [Node Red Platform] settings {
flowFile: 'flows.json',
httpAdminRoot: '/red',
httpNodeRoot: '/api',
userDir: '/var/lib/homebridge/nodered-1956',
functionGlobalContext: {},
module: 'localfilesystem'

Plugin Config:
{
"name": "Node Red Platform",
"port": 1956,
"settings": [
{
"name": "credentialSecret",
"value": %%%%%%%%%%%%%
},
{
"name": "module",
"value": ""localfilesystem""
}
],
"_bridge": {
"username": "0E:A8:C4:6F:C6:96",
"port": 42103
},
"platform": "NodeRedHomebridgePlugin"
}

Screenshots:

Environment:

  • Plugin Version: 2.2.0
  • Homebridge Version: 1.7.0
  • Node.js Version: v20.12.0
  • NPM Version: 10.5.0
  • Operating System: Debian GNU/Linux Bullseye (11)
@allanjthorne allanjthorne added the question Further information is requested label Apr 8, 2024
@helander
Copy link
Owner

helander commented Apr 9, 2024

By default the contexts are stored in main memory only. In case you need to persist a context you need to configure node-red accordingly.
The homebridge-node-red plugin allow you to configure arbitrary node-red settings.

Consult the plugin documentation and the node-red settings documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants