Entity is not visible
-
Trying my damndest to follow the guidelines......
Reactor latest-22274-24dfd72c
Intel NUC Debian BullseyeUsing an online YAML editor I have managed to create a reactor.yaml with an entity that allows Reactor to start (no idea why vi seems to break the yaml)
- id: mqqt enabled: true implementation: MQTTController name: Mosquito config: source: "mqtt://192.168.70.249:8883/" username: xxxx password: xxxx entities: catman_iphone: name: "Catman Phone" topic: FCEB043-B975-490E-B051-198473F6A504 uses_template: owntracks_in_region region: "Home"
My expectation is that this would create a binary sensor. I can see no such sensor.
Reactor log:
[latest-22274]2022-10-09T15:13:55.580Z <app:null> Reactor latest-22274-24dfd72c starting on v16.15.0 [latest-22274]2022-10-09T15:13:55.581Z <app:INFO> Process ID 10567; docker false; platform linux/x64 #1 SMP Debian 4.19.235-1 (2022-03-17); locale en_GB.UTF-8 [latest-22274]2022-10-09T15:13:55.581Z <app:INFO> Basedir /home/catman/reactor; data in /home/catman/reactor/storage [latest-22274]2022-10-09T15:13:55.581Z <app:INFO> NODE_PATH=/home/catman/reactor [latest-22274]2022-10-09T15:13:55.583Z <app:INFO> Configured locale (undefined); selected locale(s) en_GB.UTF-8 [latest-22274]2022-10-09T15:13:55.601Z <app:INFO> Loaded locale en-US [latest-22274]2022-10-09T15:13:55.612Z <Capabilities:null> Module Capabilities v22250 [latest-22274]2022-10-09T15:13:55.659Z <Plugin:null> Module Plugin v21186 [latest-22274]2022-10-09T15:13:55.663Z <TimerBroker:null> Module TimerBroker v22263 [latest-22274]2022-10-09T15:13:55.665Z <default:INFO> Module Entity v22258 [latest-22274]2022-10-09T15:13:55.667Z <Controller:null> Module Controller v22266 [latest-22274]2022-10-09T15:13:55.668Z <default:null> Module Structure v22123 [latest-22274]2022-10-09T15:13:55.675Z <default:null> Module Ruleset v21096 [latest-22274]2022-10-09T15:13:55.675Z <default:null> Module Rulesets v21096 [latest-22274]2022-10-09T15:13:55.680Z <GlobalExpression:null> Module GlobalExpression v21333 [latest-22274]2022-10-09T15:13:55.697Z <Predicate:null> Module Predicate v22271 [latest-22274]2022-10-09T15:13:55.699Z <AlertManager:null> Module AlertManager v22117 [latest-22274]2022-10-09T15:13:55.701Z <default:null> Module Rule v22265 [latest-22274]2022-10-09T15:13:55.704Z <GlobalReaction:null> Module GlobalReaction v21333 [latest-22274]2022-10-09T15:13:55.705Z <default:null> Module Engine v22266 [latest-22274]2022-10-09T15:13:55.705Z <default:null> Module httpapi v22248 [latest-22274]2022-10-09T15:13:55.717Z <default:null> Module wsapi v22104 [latest-22274]2022-10-09T15:13:55.719Z <app:NOTICE> Starting Structure... [latest-22274]2022-10-09T15:13:55.723Z <Structure:NOTICE> Structure#1 plugin ID influx disabled; skipping [latest-22274]2022-10-09T15:13:55.727Z <Structure:INFO> Structure#1 loading controller interface vera (VeraController) [latest-22274]2022-10-09T15:13:55.762Z <TaskQueue:null> Module TaskQueue 21351 [latest-22274]2022-10-09T15:13:55.763Z <VeraController:null> Module VeraController v22258 [latest-22274]2022-10-09T15:13:55.866Z <Structure:INFO> Structure#1 loading controller interface mqqt (MQTTController) [latest-22274]2022-10-09T15:13:55.869Z <MQTTController:null> Module MQTTController v22144 [latest-22274]2022-10-09T15:13:55.930Z <MQTTController:INFO> instance topic ident is mqqt [latest-22274]2022-10-09T15:13:55.933Z <Structure:INFO> Structure#1 loading controller interface groups (DynamicGroupController) [latest-22274]2022-10-09T15:13:55.938Z <DynamicGroupController:null> Module DynamicGroupController v22123 [latest-22274]2022-10-09T15:13:55.941Z <Structure:INFO> Structure#1 loading controller interface reactor_system (SystemController) [latest-22274]2022-10-09T15:13:55.944Z <SystemController:null> Module SystemController v22257 [latest-22274]2022-10-09T15:13:55.946Z <Structure:INFO> Starting controller VeraController#vera [latest-22274]2022-10-09T15:13:55.947Z <VeraController:NOTICE> VeraController#vera starting [latest-22274]2022-10-09T15:13:55.985Z <VeraController:INFO> VeraController#vera loaded mapping ver 22257 rev 3 format 1 notice (none) [latest-22274]2022-10-09T15:13:55.990Z <VeraController:INFO> VeraController: deviceclass room capability sys_group does not provide attribute members [latest-22274]2022-10-09T15:13:55.990Z <VeraController:INFO> VeraController: deviceclass room capability sys_group does not provide attribute empty [latest-22274]2022-10-09T15:13:56.000Z <Structure:INFO> Starting controller MQTTController#mqqt [latest-22274]2022-10-09T15:13:56.001Z <MQTTController:NOTICE> Connecting to broker mqtt://192.168.70.249:8883/ [latest-22274]2022-10-09T15:13:56.036Z <Structure:INFO> Starting controller DynamicGroupController#groups [latest-22274]2022-10-09T15:13:56.041Z <DynamicGroupController:NOTICE> Controller DynamicGroupController#groups is now online. [latest-22274]2022-10-09T15:13:56.041Z <Structure:INFO> Starting controller SystemController#reactor_system [latest-22274]2022-10-09T15:13:56.043Z <SystemController:NOTICE> Controller SystemController#reactor_system is now online. [latest-22274]2022-10-09T15:13:56.081Z <app:NOTICE> Starting HTTP server and API... [latest-22274]2022-10-09T15:13:56.083Z <httpapi:NOTICE> Starting HTTP API v1 22248 on http://192.168.70.2
Anyone comment on what I've done wrong?
TIA
C
-
Trying my damndest to follow the guidelines......
Reactor latest-22274-24dfd72c
Intel NUC Debian BullseyeUsing an online YAML editor I have managed to create a reactor.yaml with an entity that allows Reactor to start (no idea why vi seems to break the yaml)
- id: mqqt enabled: true implementation: MQTTController name: Mosquito config: source: "mqtt://192.168.70.249:8883/" username: xxxx password: xxxx entities: catman_iphone: name: "Catman Phone" topic: FCEB043-B975-490E-B051-198473F6A504 uses_template: owntracks_in_region region: "Home"
My expectation is that this would create a binary sensor. I can see no such sensor.
Reactor log:
[latest-22274]2022-10-09T15:13:55.580Z <app:null> Reactor latest-22274-24dfd72c starting on v16.15.0 [latest-22274]2022-10-09T15:13:55.581Z <app:INFO> Process ID 10567; docker false; platform linux/x64 #1 SMP Debian 4.19.235-1 (2022-03-17); locale en_GB.UTF-8 [latest-22274]2022-10-09T15:13:55.581Z <app:INFO> Basedir /home/catman/reactor; data in /home/catman/reactor/storage [latest-22274]2022-10-09T15:13:55.581Z <app:INFO> NODE_PATH=/home/catman/reactor [latest-22274]2022-10-09T15:13:55.583Z <app:INFO> Configured locale (undefined); selected locale(s) en_GB.UTF-8 [latest-22274]2022-10-09T15:13:55.601Z <app:INFO> Loaded locale en-US [latest-22274]2022-10-09T15:13:55.612Z <Capabilities:null> Module Capabilities v22250 [latest-22274]2022-10-09T15:13:55.659Z <Plugin:null> Module Plugin v21186 [latest-22274]2022-10-09T15:13:55.663Z <TimerBroker:null> Module TimerBroker v22263 [latest-22274]2022-10-09T15:13:55.665Z <default:INFO> Module Entity v22258 [latest-22274]2022-10-09T15:13:55.667Z <Controller:null> Module Controller v22266 [latest-22274]2022-10-09T15:13:55.668Z <default:null> Module Structure v22123 [latest-22274]2022-10-09T15:13:55.675Z <default:null> Module Ruleset v21096 [latest-22274]2022-10-09T15:13:55.675Z <default:null> Module Rulesets v21096 [latest-22274]2022-10-09T15:13:55.680Z <GlobalExpression:null> Module GlobalExpression v21333 [latest-22274]2022-10-09T15:13:55.697Z <Predicate:null> Module Predicate v22271 [latest-22274]2022-10-09T15:13:55.699Z <AlertManager:null> Module AlertManager v22117 [latest-22274]2022-10-09T15:13:55.701Z <default:null> Module Rule v22265 [latest-22274]2022-10-09T15:13:55.704Z <GlobalReaction:null> Module GlobalReaction v21333 [latest-22274]2022-10-09T15:13:55.705Z <default:null> Module Engine v22266 [latest-22274]2022-10-09T15:13:55.705Z <default:null> Module httpapi v22248 [latest-22274]2022-10-09T15:13:55.717Z <default:null> Module wsapi v22104 [latest-22274]2022-10-09T15:13:55.719Z <app:NOTICE> Starting Structure... [latest-22274]2022-10-09T15:13:55.723Z <Structure:NOTICE> Structure#1 plugin ID influx disabled; skipping [latest-22274]2022-10-09T15:13:55.727Z <Structure:INFO> Structure#1 loading controller interface vera (VeraController) [latest-22274]2022-10-09T15:13:55.762Z <TaskQueue:null> Module TaskQueue 21351 [latest-22274]2022-10-09T15:13:55.763Z <VeraController:null> Module VeraController v22258 [latest-22274]2022-10-09T15:13:55.866Z <Structure:INFO> Structure#1 loading controller interface mqqt (MQTTController) [latest-22274]2022-10-09T15:13:55.869Z <MQTTController:null> Module MQTTController v22144 [latest-22274]2022-10-09T15:13:55.930Z <MQTTController:INFO> instance topic ident is mqqt [latest-22274]2022-10-09T15:13:55.933Z <Structure:INFO> Structure#1 loading controller interface groups (DynamicGroupController) [latest-22274]2022-10-09T15:13:55.938Z <DynamicGroupController:null> Module DynamicGroupController v22123 [latest-22274]2022-10-09T15:13:55.941Z <Structure:INFO> Structure#1 loading controller interface reactor_system (SystemController) [latest-22274]2022-10-09T15:13:55.944Z <SystemController:null> Module SystemController v22257 [latest-22274]2022-10-09T15:13:55.946Z <Structure:INFO> Starting controller VeraController#vera [latest-22274]2022-10-09T15:13:55.947Z <VeraController:NOTICE> VeraController#vera starting [latest-22274]2022-10-09T15:13:55.985Z <VeraController:INFO> VeraController#vera loaded mapping ver 22257 rev 3 format 1 notice (none) [latest-22274]2022-10-09T15:13:55.990Z <VeraController:INFO> VeraController: deviceclass room capability sys_group does not provide attribute members [latest-22274]2022-10-09T15:13:55.990Z <VeraController:INFO> VeraController: deviceclass room capability sys_group does not provide attribute empty [latest-22274]2022-10-09T15:13:56.000Z <Structure:INFO> Starting controller MQTTController#mqqt [latest-22274]2022-10-09T15:13:56.001Z <MQTTController:NOTICE> Connecting to broker mqtt://192.168.70.249:8883/ [latest-22274]2022-10-09T15:13:56.036Z <Structure:INFO> Starting controller DynamicGroupController#groups [latest-22274]2022-10-09T15:13:56.041Z <DynamicGroupController:NOTICE> Controller DynamicGroupController#groups is now online. [latest-22274]2022-10-09T15:13:56.041Z <Structure:INFO> Starting controller SystemController#reactor_system [latest-22274]2022-10-09T15:13:56.043Z <SystemController:NOTICE> Controller SystemController#reactor_system is now online. [latest-22274]2022-10-09T15:13:56.081Z <app:NOTICE> Starting HTTP server and API... [latest-22274]2022-10-09T15:13:56.083Z <httpapi:NOTICE> Starting HTTP API v1 22248 on http://192.168.70.2
Anyone comment on what I've done wrong?
TIA
C
@catmanv2 said in Entity is not visible:
Trying my damndest to follow the guidelines
This is a solid performance.
no idea why vi seems to break the yaml
If i had to guess, you're indenting with tabs rather than spaces. That would be the first thing I'd look at. No tabs allowed.
My expectation is that this would create a binary sensor. I can see no such sensor
Easy, at least at the first level: your
entities
section is at the same indent level asconfig
. Theentities
section is part ofconfig
, so it should be indented underneath it.entities:
and all of the lines that follow as part of it should be indented two more spaces. As you have it, MQTTController can't even see that section, and that would explain why you're not getting an entity created.Should be:
- id: mqqt enabled: true implementation: MQTTController name: Mosquito config: source: "mqtt://192.168.70.249:8883/" username: xxxx password: xxxx entities: catman_iphone: ...
-
@catmanv2 said in Entity is not visible:
Trying my damndest to follow the guidelines
This is a solid performance.
no idea why vi seems to break the yaml
If i had to guess, you're indenting with tabs rather than spaces. That would be the first thing I'd look at. No tabs allowed.
My expectation is that this would create a binary sensor. I can see no such sensor
Easy, at least at the first level: your
entities
section is at the same indent level asconfig
. Theentities
section is part ofconfig
, so it should be indented underneath it.entities:
and all of the lines that follow as part of it should be indented two more spaces. As you have it, MQTTController can't even see that section, and that would explain why you're not getting an entity created.Should be:
- id: mqqt enabled: true implementation: MQTTController name: Mosquito config: source: "mqtt://192.168.70.249:8883/" username: xxxx password: xxxx entities: catman_iphone: ...
@toggledbits said in Entity is not visible:
If i had to guess, you're indenting with tabs rather than spaces. That would be the first thing I'd look at. No tabs allowed.
Thanks. I promise I'm not not but I'll just do it in a browser for now
- id: mqqt enabled: true implementation: MQTTController name: Mosquito config: source: "mqtt://192.168.70.249:8883/" username: xxxx password: xxxx entities: catman_iphone: name: "Catman Phone" topic: catmaniphone uses_template: owntracks_in_region region: "Home"
Everything starts fine. I've hard refreshed the browser.
Still can't find any entity in either the entities screen or if I try to use 'it' in a rule.
Clearly I've still done something idiotic, and there's an error in here, but damned if I know what it means?
[latest-22274]2022-10-09T17:45:15.492Z <Structure:INFO> Starting controller MQTTController#mqqt [latest-22274]2022-10-09T17:45:15.493Z <Structure:INFO> Starting controller DynamicGroupController#groups [latest-22274]2022-10-09T17:45:15.496Z <DynamicGroupController:NOTICE> Controller DynamicGroupController#groups is now online. [latest-22274]2022-10-09T17:45:15.496Z <Structure:INFO> Starting controller SystemController#reactor_system [latest-22274]2022-10-09T17:45:15.498Z <SystemController:NOTICE> Controller SystemController#reactor_system is now online. [latest-22274]2022-10-09T17:45:15.538Z <Structure:ERR> Structure#1 controller mqqt failed to start: [TypeError]TypeError: Cannot read properties of null (reading 'uses_template') [latest-22274]2022-10-09T17:45:15.538Z <Structure:CRIT> TypeError: Cannot read properties of null (reading 'uses_template') TypeError: Cannot read properties of null (reading 'uses_template') at MQTTController.start (/home/catman/reactor/ext/MQTTController/MQTTController.js:73:21) at Structure.start (/home/catman/reactor/server/lib/Structure.js:346:56) [latest-22274]2022-10-09T17:45:15.538Z <MQTTController:NOTICE> MQTTController#mqqt stopping, sending LWT [latest-22274]2022-10-09T17:45:15.539Z <MQTTController:NOTICE> MQTTController#mqqt stopping [latest-22274]2022-10-09T17:45:15.540Z <app:NOTICE> Starting HTTP server and API... [latest-22274]2022-10-09T17:45:15.542Z <httpapi:NOTICE> Starting HTTP API v1 22248 on http://192.168.70.249:8111 [latest-22274]2022-10-09T17:45:15.545Z <app:NOTICE> Starting Reaction Engine... [latest-22274]2022-10-09T17:45:15.545Z <Engine:INFO> Reaction Engine starting
Cheers
<edit> per the other thread I've also edited the DeviceID to catmaniphone on the phone and in the reactor.yaml. The log remains the same.
C
-
OK. I just noticed one more error... if I had included more sample data in my last example to you, I would have noticed it earlier...
All together now...
entities:
must be indented two spaces fromconfig:
(as per my last post), but also everything aftercatman_iphone:
should be indented two spaces from that...- id: mqqt enabled: true implementation: MQTTController name: Mosquito config: source: "mqtt://192.168.70.249:8883/" username: xxxx password: xxxx entities: catman_iphone: name: "Catman Phone" topic: catmaniphone uses_template: owntracks_in_region region: "Home"
General rule of thumb... if the
:
is the last character on the line, everything below it will need to be indented. -
I shall try to remember, thanks!
So I have this:
- id: mqqt enabled: true implementation: MQTTController name: Mosquito config: source: "mqtt://192.168.70.249:8883/" username: xxxxx password: xxxxx entities: catman_iphone: name: "Catman Phone" topic: catmaniphone uses_template: owntracks_in_region region: "Home2"
And in the logs:
[latest-22274]2022-10-09T20:45:55.083Z <app:null> Reactor latest-22274-24dfd72c starting on v16.15.0 [latest-22274]2022-10-09T20:45:55.084Z <app:INFO> Process ID 24110; docker false; platform linux/x64 #1 SMP Debian 4.19.235-1 (2022-03-17); locale en_GB.UTF-8 [latest-22274]2022-10-09T20:45:55.084Z <app:INFO> Basedir /home/catman/reactor; data in /home/catman/reactor/storage [latest-22274]2022-10-09T20:45:55.084Z <app:INFO> NODE_PATH=/home/catman/reactor [latest-22274]2022-10-09T20:45:55.086Z <app:INFO> Configured locale (undefined); selected locale(s) en_GB.UTF-8 [latest-22274]2022-10-09T20:45:55.105Z <app:INFO> Loaded locale en-US [latest-22274]2022-10-09T20:45:55.113Z <Capabilities:null> Module Capabilities v22250 [latest-22274]2022-10-09T20:45:55.160Z <Plugin:null> Module Plugin v21186 [latest-22274]2022-10-09T20:45:55.164Z <TimerBroker:null> Module TimerBroker v22263 [latest-22274]2022-10-09T20:45:55.166Z <default:INFO> Module Entity v22258 [latest-22274]2022-10-09T20:45:55.168Z <Controller:null> Module Controller v22266 [latest-22274]2022-10-09T20:45:55.169Z <default:null> Module Structure v22123 [latest-22274]2022-10-09T20:45:55.176Z <default:null> Module Ruleset v21096 [latest-22274]2022-10-09T20:45:55.176Z <default:null> Module Rulesets v21096 [latest-22274]2022-10-09T20:45:55.181Z <GlobalExpression:null> Module GlobalExpression v21333 [latest-22274]2022-10-09T20:45:55.194Z <Predicate:null> Module Predicate v22271 [latest-22274]2022-10-09T20:45:55.197Z <AlertManager:null> Module AlertManager v22117 [latest-22274]2022-10-09T20:45:55.198Z <default:null> Module Rule v22265 [latest-22274]2022-10-09T20:45:55.201Z <GlobalReaction:null> Module GlobalReaction v21333 [latest-22274]2022-10-09T20:45:55.202Z <default:null> Module Engine v22266 [latest-22274]2022-10-09T20:45:55.202Z <default:null> Module httpapi v22248 [latest-22274]2022-10-09T20:45:55.214Z <default:null> Module wsapi v22104 [latest-22274]2022-10-09T20:45:55.215Z <app:NOTICE> Starting Structure... [latest-22274]2022-10-09T20:45:55.218Z <Structure:NOTICE> Structure#1 plugin ID influx disabled; skipping [latest-22274]2022-10-09T20:45:55.221Z <Structure:INFO> Structure#1 loading controller interface vera (VeraController) [latest-22274]2022-10-09T20:45:55.258Z <TaskQueue:null> Module TaskQueue 21351 [latest-22274]2022-10-09T20:45:55.259Z <VeraController:null> Module VeraController v22258 [latest-22274]2022-10-09T20:45:55.362Z <Structure:INFO> Structure#1 loading controller interface mqqt (MQTTController) [latest-22274]2022-10-09T20:45:55.366Z <MQTTController:null> Module MQTTController v22144 [latest-22274]2022-10-09T20:45:55.422Z <MQTTController:INFO> instance topic ident is mqqt [latest-22274]2022-10-09T20:45:55.425Z <Structure:INFO> Structure#1 loading controller interface groups (DynamicGroupController) [latest-22274]2022-10-09T20:45:55.429Z <DynamicGroupController:null> Module DynamicGroupController v22123 [latest-22274]2022-10-09T20:45:55.432Z <Structure:INFO> Structure#1 loading controller interface reactor_system (SystemController) [latest-22274]2022-10-09T20:45:55.435Z <SystemController:null> Module SystemController v22257 [latest-22274]2022-10-09T20:45:55.438Z <Structure:INFO> Starting controller VeraController#vera [latest-22274]2022-10-09T20:45:55.438Z <VeraController:NOTICE> VeraController#vera starting [latest-22274]2022-10-09T20:45:55.477Z <VeraController:INFO> VeraController#vera loaded mapping ver 22257 rev 3 format 1 notice (none) [latest-22274]2022-10-09T20:45:55.482Z <VeraController:INFO> VeraController: deviceclass room capability sys_group does not provide attribute members [latest-22274]2022-10-09T20:45:55.482Z <VeraController:INFO> VeraController: deviceclass room capability sys_group does not provide attribute empty [latest-22274]2022-10-09T20:45:55.492Z <Structure:INFO> Starting controller MQTTController#mqqt [latest-22274]2022-10-09T20:45:55.492Z <MQTTController:ERR> MQTTController#mqqt entity catman_iphone uses_template=owntracks_in_region, template not defined [latest-22274]2022-10-09T20:45:55.493Z <MQTTController:NOTICE> Connecting to broker mqtt://192.168.70.249:8883/ [latest-22274]2022-10-09T20:45:55.527Z <Structure:INFO> Starting controller DynamicGroupController#groups [latest-22274]2022-10-09T20:45:55.533Z <DynamicGroupController:NOTICE> Controller DynamicGroupController#groups is now online. [latest-22274]2022-10-09T20:45:55.533Z <Structure:INFO> Starting controller SystemController#reactor_system [latest-22274]2022-10-09T20:45:55.535Z <SystemController:NOTICE> Controller SystemController#reactor_system is now online. [latest-22274]2022-10-09T20:45:55.574Z <app:NOTICE> Starting HTTP server and API... [latest-22274]2022-10-09T20:45:55.576Z <httpapi:NOTICE> Starting HTTP API v1 22248 on http://192.168.70.249:8111 [latest-22274]2022-10-09T20:45:55.579Z <app:NOTICE> Starting Reaction Engine... [latest-22274]2022-10-09T20:45:55.579Z <Engine:INFO> Reaction Engine starting
Still no device. Thanks
C
-
You need at least version 22260 of MQTTController
-
T toggledbits locked this topic on