18481340-4d9c-4d0c-8027-49adfa28f32a-image.png
e0e1c895-a830-48d5-8346-cbae551b441d-image.png
This has been working flawlessly each year incl this year until... Tonight... nada.
Is this due to the holiday being late this year ie because today is the 22nd, not after the 22nd?
I've managed to use MSR UI on iOS devices to some degree*, so that although UI elements (e.g. rule sets) are not visible in portrait mode, you've seen them in landscape. Now with recents builds (24302) this does not work anymore, elements (rule sets, entities) are not anymore visible in landscape mode.
Does anyone have similar experiences? Using iOS 18 and Safari/Chrome browser.
( *Drag & drop of rule conditions have never worked on a mobile)
Hi @toggledbits,
I have lots of logs with this:
<Engine:ERR> Assignment to alarm ignored -- expression-driven global cannot be set by assignmentAny hints to where look at to avoid this? Thanks.
Hi @toggledbits
I'd like to update my controllers with these new features, but I'm struggling to find any guidance in the docs - and in general to understand the context.
Could you please elaborate more? Thanks.
I have the following ACL defined:
groups: admin: users: - admin applications: true api_acls: # This ACL allows users in the "admin" group to access the API - url: "/api" group: admin allow: true log: true # This ACL allows anyone/thing to access the /api/v1/alive API endpoint - url: "/api/v1/alive" allow: trueAnd I have authenticated to MSR as "admin" user. However, I'm getting "access denied" when trying to access http://*******:8111/api/v1/log
So what I'm missing, is my ACL incorrectly defined?
Using build 24302 on Docker.
Thanks to @toggledbits for adding a custom CSS. I've started doing a darker Reactor style.
Here's the file: https://gist.github.com/dbochicchio/825098ac13b7f8cac22012eae37ff7ce
A couple of things are still too bright and I'll eventually catch-up. Just place it under your /config directory, naming the file as customstyles.css. Hard refresh your browser.
Hi!
In Home Assistant I sometimes uses the TTS, either to my Sonos or Google speakers. With reactor in Vera I also use TTS.
But in MSR I can't select the TTS-service. It's simply not there. Am I missing something, or is this the case, so far?
Thanks!
/Fanan
Hi
I have just connected a bunch of EzloPi controllers to MSR to import some ESP based devices etc.
They all seemed to have worked and imported in to MSR apart from I have one missing device. It is a Digital Gas Sensor device.
This is how that device looks in the Ezlo API.
Devices Info:
_id: "10696001" deviceTypeId: "ezlopi" parentDeviceId: "10696000" category: "level_sensor" subcategory: "" gatewayId: "457a5069" batteryPowered: false name: "Gas Sensor Digital" type: "sensor" reachable: true persistent: true serviceNotification: false armed: false roomId: "" security: "no" ready: true status: "idle" parentRoom: true protectConfig: "default"Items Info:
_id: "20696001" deviceId: "10696001" hasGetter: true hasSetter: false name: "smoke_density" show: true valueType: "substance_amount" scale: "parts_per_million" value: 2.7472610473632812 valueFormatted: "2.75" status: "idle"There is also an Analog Gas sensor that one did import in to MSR OK.
68d63dab-b871-4f44-912b-cf6e0b9eb4c6-image.png
Devices Info:
_id: "10696000" deviceTypeId: "ezlopi" parentDeviceId: "10696000" category: "security_sensor" subcategory: "gas" gatewayId: "457a5069" batteryPowered: false name: "Gas Sensor Analog" type: "sensor" reachable: true persistent: true serviceNotification: false armed: false roomId: "" security: "no" ready: true status: "idle" parentRoom: true protectConfig: "default"Items Info:
_id: "20696000" deviceId: "10696000" hasGetter: true hasSetter: false name: "gas_alarm" show: true valueType: "token" enum: 0: "no_gas" 1: "combustible_gas_detected" 2: "toxic_gas_detected" 3: "unknown" valueFormatted: "no_gas" value: "no_gas" status: "idle"And this is how this MQ2 Gas Sensor looks like on their dashboard:
Digital
cb77dfa3-4af5-4d06-9635-89207a716a89-image.png
Analog
4fb4da1b-e946-4b89-876c-bcd9f5699b6c-image.png
They have an EzloPi website here you can create your own sensor projects using ESP boards, which is very interesting stuff!
And I just wrote on the Ezlo forum here, how to connect an EzloPi controller to MSR.
THANKS.
Build 21228 has been released. Docker images available from DockerHub as usual, and bare-metal packages here.
Home Assistant up to version 2021.8.6 supported; the online version of the manual will now state the current supported versions; Fix an error in OWMWeatherController that could cause it to stop updating; Unify the approach to entity filtering on all hub interface classes (controllers); this works for device entities only; it may be extended to other entities later; Improve error detail in messages for EzloController during auth phase; Add isRuleSet() and isRuleEnabled() functions to expressions extensions; Implement set action for lock and passage capabilities (makes them more easily scriptable in some cases); Fix a place in the UI where 24-hour time was not being displayed.A couple of things for you @toggledbits, since you mentioned that this release has new features and some tweaks are expected.
Local expressions cannot be deleted. Pushing the X button has no effect for me.
When cloning an entity action, the result is strange (first is cloned one, second is the original action):
a92ea094-9e2c-4aaa-bf47-2d07a6ffdbd0-image.png
When changing the action on the cloned element, the params are added to the original one. See screenshot:
92ac3011-83c8-466b-bd23-47d483ad7a52-image.png
Dark theme has a couple of strange contrasts. One is visible in the previous screenshots (white text on yellow background). Another one is in groups (blue text on blue background):
9b3c4988-53ef-44e6-9672-30e744cacb75-image.png
Overall, I found blue, yellow, red and green (in buttons and forms) to be too bright.
On the bright side:
I love the new script action: thank you! The dark theme is a great start to avoid getting blinded at night I promise I'll try very soon the new features around actions. Thanks!@toggledbits
I just upgraded to version MSR 24293, bare metal running on Fedora. Upon restart, I am getting a error banner:
I followed the new directions about npm
npm i --no-save --no-package-lock --omit dev
Any idea what the issue is?
Seems like switching the UI to the newly added dark mode (thank you for this) does nothing. The UI stays in light mode and only a few buttons turn into dark mode (see screenshot)
Things I have tried:
Hard refresh
Different browser
Different computer
Restarting Reactor
Failed troubleshooting attempts:
No errors in Chrome console
No relevant errors in Reactor log (can still PM the full log file)
Reactor version: latest-24293-ea42a81d
Hardware: Odroid N2+
Linux version: Ubuntu 24.04.1 LTS
3df2806f-9146-485b-9ec1-d056e91cefe5-image.png Dark mode enabled
ff823023-c079-4684-b01f-d6ac6527d31a-image.png Light mode enabled
Good morning,
I have a service MQTT service that needs a restart occasionally. The add-on (Smartbed MQTT) is for the smart bed base for my bed. It has a "safety light" that I can control from HAAS & MSR as a light entity, and also moves the head of the bed to a preset at bedtime, and then lies it back flat in the morning The problem is, from time to time, the light becomes "unavailable" Restarting from the Add-ons tab in HAAS always fixes it, but I should be able to detect when it happens when "light.tempur_pedic_safety_lights" is not true or false, i.e., unavailable.
What I don't know how to do is how to restart that service. Does anybody have experience in restarting add-ons from MSR?
Running:
Reactor (Multi-hub) latest-24212-3ce15e25 ZWaveJSController [0.1.24232]HAAS:
RPi5-64 (8GB) Core 2024.7.3 Supervisor 2024.08.0 Operating System 13.0 Frontend 20240710.0Hi!
Is it possible to generate two additional log files, the first being the replica of what is displayed on screen by the Rule History widgets and the other with Recently Changed Entities?
And could I configure the generation of one file per day, and delete the older ones? For example, store the last 5 days?
And being more ambitious, does Windget have an icon to open these TXT files in the navigated?
Well, we're approaching Christmas, so here's my request to Santa Claus @toggledbits 🙂
Hi @toggledbits
I'm working on a controller to generate llm response from a prompt in reactor. I have http response coming thru an http request action at the moment, capturing the response inside a local variable. So, it's practically sync.
I want to create a controller, so I don't have to rely on a proxy (and have a simpler architecture), and duplicate absurd http actions, but AFAIK in the current implementation, actions are async only. But if I have multiple requests going on, I cannot be sure what it's really inside an attribute. I also thought that something like a correlation id when sending the request could be used to identity multiple responses, but I wanted to double check with you before starting with something too complicated. I also noticed that some actions in home assistant (ie forecast) are sync and I'm wondering if you have any plan or hint to address this situation. Thanks.
Thanks.
@togglebits I am curious as to why the tilt_sensor.state (primary) = NULL. I believe it should show true or false. I have to use binary_sensor.state instead in my rules.
Again, not sure if this is related to Reactor/ZwaveJSController implementation or the actual Z-Wave JS UI docker version. I have copied, below, the attributes of the tilt sensor in hopes it can help.
Thanks in advance.
Reactor version 23302
ZWaveJSController version 23254
Z-Wave JS UI version 9.3.0.724519f
zwave-js version 12.2.3
@toggledbits I have noticed after upgrading both Reactor and ZWaveJSController to version 24257 that two of my devices/entities, TILT-ZWAVE2.5-ECO and Zooz ZSE18, had their entity re-named in an unusual way and also appears to be duplicated.
Reactor version 24257
ZWaveJSController version 24257
Z-Wave JS UI version 9.18.1
zwave-js version 13.2.0
Vestibule Motion Sensor State attributes/partial screenshot of entities it created. All entities have the same attributes.
motion_sensor.state=true x_zwave_values.Notification_Home_Security_Motion_sensor_status=8 zwave_device.capabilities=[113] zwave_device.endpoint=0 zwave_device.failed=null zwave_device.manufacturer_info=null zwave_device.node_id=23 zwave_device.valueId=[113,"Notification","Home Security","Home Security","Motion sensor status","Motion sensor status"] zwave_device.version_info=nullTilt Sensor Door State and Tilt Sensor Door State Simple attributes/partial screenshot of entities it created. All entities have similar attributes with exception of x_zwave_values.Notification_Access_Control_Door_State = 22 or 23.
tilt_sensor.state=true x_zwave_values.Notification_Access_Control_Door_state=22 zwave_device.capabilities=[113] zwave_device.endpoint=0 zwave_device.failed=null zwave_device.manufacturer_info=null zwave_device.node_id=24 zwave_device.valueId=[113,"Notification","Access Control","Access Control","Door state","Door state"] zwave_device.version_info=null tilt_sensor.state=true x_zwave_values.Notification_Access_Control_Door_state_simple=22 zwave_device.capabilities=[113] zwave_device.endpoint=0 zwave_device.failed=null zwave_device.manufacturer_info=null zwave_device.node_id=24 zwave_device.valueId=[113,"Notification","Access Control","Access Control","Door state (simple)","Door state (simple)"] zwave_device.version_info=null tilt_sensor.state=false x_zwave_values.Notification_Access_Control_Door_state=23 zwave_device.capabilities=[113] zwave_device.endpoint=0 zwave_device.failed=null zwave_device.manufacturer_info=null zwave_device.node_id=24 zwave_device.valueId=[113,"Notification","Access Control","Access Control","Door state","Door state"] zwave_device.version_info=null tilt_sensor.state=false x_zwave_values.Notification_Access_Control_Door_state_simple=23 zwave_device.capabilities=[113] zwave_device.endpoint=0 zwave_device.failed=null zwave_device.manufacturer_info=null zwave_device.node_id=24 zwave_device.valueId=[113,"Notification","Access Control","Access Control","Door state (simple)","Door state (simple)"] zwave_device.version_info=null[Solved] Issue with Tasmota sensors and MQTTController later than 22024
-
MSR: latest-22080-ae7212f bare metal.
I tried several times to update MQTTController but all my Tasmota sensors shows
null
and never updates if I go above version 22024 of MQTTController.I tried both my own
local_mqtt_devices.yaml
and the default template but getting these errors in the log for all my sensors after an update.[latest-22080]2022-03-30T13:26:02.821Z <MQTTController:ERR> MQTTController#mqtt event handler failed for tele/Pooltemp/SENSOR on pooltemp: [ReferenceError]ReferenceError: Invalid reference to member [object Object] of {"Time":"2022-03-30T15:26:02","DS18B20":{"Id":"02049245CBF4","Temperature":3.4},"TempUnit":"C"} [latest-22080]2022-03-30T13:26:02.821Z <MQTTController:CRIT> ReferenceError: Invalid reference to member [object Object] of {"Time":"2022-03-30T15:26:02","DS18B20":{"Id":"02049245CBF4","Temperature":3.4},"TempUnit":"C"} [latest-22080]2022-03-30T13:26:02.828Z <MQTTController:ERR> MQTTController#mqtt event handler failed for stat/Pooltemp/RESULT on dräneringspump: [ReferenceError]ReferenceError: Invalid reference to member [object Object] of {"Var1":"3.4"} [latest-22080]2022-03-30T13:26:02.828Z <MQTTController:CRIT> ReferenceError: Invalid reference to member [object Object] of {"Var1":"3.4"} [latest-22080]2022-03-30T13:26:03.113Z <MQTTController:ERR> MQTTController#mqtt event handler failed for stat/Pooltemp/RESULT on dräneringspump: [ReferenceError]ReferenceError: Invalid reference to member [object Object] of {"WebSend":"Done"} [latest-22080]2022-03-30T13:26:03.113Z <MQTTController:CRIT> ReferenceError: Invalid reference to member [object Object] of {"WebSend":"Done"}
The example device is running fine with this config on 22024.
"pooltemp": name: "Pooltemp" topic: "Pooltemp" source: "DS18B20" uses_template: my_tasmota_sensor_temperature
local_mqtt_devices.yaml
my_tasmota_sensor_temperature: type: ValueSensor capabilities: [temperature_sensor] primary_attribute: temperature_sensor.value init: - topic: "cmnd/%topic%/STATUS" payload: 10 type: raw events: "tele/%topic%/SENSOR": "temperature_sensor.value": expr: 'payload[source]?.Temperature' "temperature_sensor.units": expr: payload.TempUnit "stat/%topic%/STATUS10": "temperature_sensor.value": expr: 'payload.StatusSNS[source]?.Temperature' "temperature_sensor.units": expr: payload.StatusSNS.TempUnit
Any clues on how I could proceed troubleshooting? and as always, what critical information have I missed in this post?
-
I'm wondering why you made a custom template. Why not use the
tasmota_sensor_temperature
built-in template?On your own template, you're not declaring that the payload is JSON, so it will be unparseable by your expressions as given. So I would try the built-in template first and see if that fixes at least half of the issue (there's no template for your special STATUS10 topic, but you can use the built-in template in
mqtt_devices.yaml
as a model for the changes you'd likely need to make.Upping the log level to 5 or 6 (+restart) is often good before trying again and then posting logs, to increase traceable information. Also, it's really vital that you post a dozen or more lines of log before the error, not just the error. Context is vital in determining what it thinks its doing before the error. The error alone may not tell much (other than that there was an error).
-
I made custom templates because I never got the default to work and I wanted a init on restarts of MSR.
My templates is based on what was in the default templates when I created them and then it was not mandatory to declare payload as JSON, it may have changed and I might have missed that release note so I tried declaring a JSON payload in my templates but made no difference.
I'm now running default template for tasmota temperature sensor with log level 6 and all that is set from SENSOR topic istemperature_sensor.units
log with version 22024
[latest-22080]2022-04-02T17:02:21.892Z <MQTTController:6:MQTTController.js:242> MQTTController#mqtt message topic=tele/Pooltemp/SENSOR, payload=[Buffer]{"Time":"2022-04-02T19:02:21","DS18B20":{"Id":"02049245CBF4","Temperature":3.8},"TempUnit":"C"} [latest-22080]2022-04-02T17:02:21.892Z <MQTTController:6:MQTTController.js:270> MQTTController#mqtt dispatching tele/Pooltemp/SENSOR to pooltemp [latest-22080]2022-04-02T17:02:21.892Z <MQTTController:5:MQTTController.js:500> MQTTController#mqtt handling tele/Pooltemp/SENSOR for pooltemp: {"Time":"2022-04-02T19:02:21","DS18B20":{"Id":"02049245CBF4","Temperature":3.8},"TempUnit":"C"} [latest-22080]2022-04-02T17:02:21.892Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>pooltemp: [Object]{ "temperature_sensor.value": { "expr": "payload[source]?.Temperature" }, "temperature_sensor.units": { "expr": "payload.TempUnit" } } [latest-22080]2022-04-02T17:02:21.892Z <MQTTController:6:MQTTController.js:589> MQTTController#mqtt setting Entity#mqtt>pooltemp temperature_sensor.value=3.8 [latest-22080]2022-04-02T17:02:21.892Z <MQTTController:6:MQTTController.js:589> MQTTController#mqtt setting Entity#mqtt>pooltemp temperature_sensor.units=C
log with 22086.
[latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=tele/Pooltemp/SENSOR, payload=[Buffer]{"Time":"2022-04-02T19:14:21","DS18B20":{"Id":"02049245CBF4","Temperature":3.4},"TempUnit":"C"} [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:278> MQTTController#mqtt dispatching tele/Pooltemp/SENSOR to pooltemp [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:5:MQTTController.js:508> MQTTController#mqtt handling tele/Pooltemp/SENSOR for pooltemp: {"Time":"2022-04-02T19:14:21","DS18B20":{"Id":"02049245CBF4","Temperature":3.4},"TempUnit":"C"} [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>pooltemp: [Object]{ "temperature_sensor.value": { "json_payload": true, "if_expr": "! isnull( payload?[ source ?? \"Global\" ] )", "expr": "payload[ source ?? \"Global\" ]?.Temperature" }, "temperature_sensor.units": { "json_payload": true, "if_expr": "! isnull( payload?.TempUnit )", "expr": "payload.TempUnit" } } [latest-22080]2022-04-02T17:14:21.911Z <MQTTController:5:MQTTController.js:604> MQTTController#mqtt setting Entity#mqtt>pooltemp temperature_sensor.units=C
long snippet from that time with 22086.
[latest-22080]2022-04-02T17:14:19.496Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_active_power/state/value_sensor {"value":167,"units":"W"} [latest-22080]2022-04-02T17:14:19.496Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_active_power/state/string_sensor {"value":"167"} [latest-22080]2022-04-02T17:14:19.496Z <MQTTController:6:MQTTController.js:801> MQTTController#mqtt echo publishing primary attribute topic reactor/mqtt/hass/sensor_active_power/value "167" [latest-22080]2022-04-02T17:14:19.497Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/67/EnergyMetering1/input_power, payload=[Buffer]197 [latest-22080]2022-04-02T17:14:19.497Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_input_power/value "197" [latest-22080]2022-04-02T17:14:19.497Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_active_power/state/value_sensor {"value":167,"units":"W"} [latest-22080]2022-04-02T17:14:19.497Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_active_power/state/string_sensor {"value":"167"} [latest-22080]2022-04-02T17:14:19.498Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/67/EnergyMetering1/active_power, payload=[Buffer]0.167 [latest-22080]2022-04-02T17:14:19.498Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/67/EnergyMetering1/Watts, payload=[Buffer]167 [latest-22080]2022-04-02T17:14:19.498Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_active_power/value "167" [latest-22080]2022-04-02T17:14:19.498Z <MQTTController:6:MQTTController.js:727> MQTTController#mqtt echo handling entity notification for Entity#hass>sensor_efficiency [latest-22080]2022-04-02T17:14:19.498Z <MQTTController:6:MQTTController.js:732> MQTTController#mqtt echo publishing capabilities for entity Entity#hass>sensor_efficiency [latest-22080]2022-04-02T17:14:19.498Z <MQTTController:6:MQTTController.js:775> MQTTController#mqtt echo cap x_hass rejected -- default reject extended x_hass [latest-22080]2022-04-02T17:14:19.498Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_efficiency/state/value_sensor {"value":84.9,"units":"%"} [latest-22080]2022-04-02T17:14:19.498Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_efficiency/state/string_sensor {"value":"84.9"} [latest-22080]2022-04-02T17:14:19.499Z <MQTTController:6:MQTTController.js:801> MQTTController#mqtt echo publishing primary attribute topic reactor/mqtt/hass/sensor_efficiency/value "84.9" [latest-22080]2022-04-02T17:14:19.499Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_efficiency/state/value_sensor {"value":84.9,"units":"%"} [latest-22080]2022-04-02T17:14:19.499Z <MQTTController:6:MQTTController.js:727> MQTTController#mqtt echo handling entity notification for Entity#hass>sensor_pv_1_voltage [latest-22080]2022-04-02T17:14:19.499Z <MQTTController:6:MQTTController.js:732> MQTTController#mqtt echo publishing capabilities for entity Entity#hass>sensor_pv_1_voltage [latest-22080]2022-04-02T17:14:19.500Z <MQTTController:6:MQTTController.js:775> MQTTController#mqtt echo cap x_hass rejected -- default reject extended x_hass [latest-22080]2022-04-02T17:14:19.500Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_pv_1_voltage/state/value_sensor {"value":302.2,"units":"V"} [latest-22080]2022-04-02T17:14:19.500Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_pv_1_voltage/state/string_sensor {"value":"302.2"} [latest-22080]2022-04-02T17:14:19.500Z <MQTTController:6:MQTTController.js:801> MQTTController#mqtt echo publishing primary attribute topic reactor/mqtt/hass/sensor_pv_1_voltage/value "302.2" [latest-22080]2022-04-02T17:14:19.500Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_efficiency/state/string_sensor {"value":"84.9"} [latest-22080]2022-04-02T17:14:19.500Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/67/EnergyMetering1/efficiency, payload=[Buffer]84.9 [latest-22080]2022-04-02T17:14:19.501Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_efficiency/value "84.9" [latest-22080]2022-04-02T17:14:19.501Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_1_voltage/state/value_sensor {"value":302.2,"units":"V"} [latest-22080]2022-04-02T17:14:19.501Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_1_voltage/state/string_sensor {"value":"302.2"} [latest-22080]2022-04-02T17:14:19.502Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/67/EnergyMetering1/pv_1_voltage, payload=[Buffer]302.2 [latest-22080]2022-04-02T17:14:19.502Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_1_voltage/value "302.2" [latest-22080]2022-04-02T17:14:19.502Z <MQTTController:6:MQTTController.js:727> MQTTController#mqtt echo handling entity notification for Entity#hass>sensor_pv_2_voltage [latest-22080]2022-04-02T17:14:19.502Z <MQTTController:6:MQTTController.js:732> MQTTController#mqtt echo publishing capabilities for entity Entity#hass>sensor_pv_2_voltage [latest-22080]2022-04-02T17:14:19.502Z <MQTTController:6:MQTTController.js:775> MQTTController#mqtt echo cap x_hass rejected -- default reject extended x_hass [latest-22080]2022-04-02T17:14:19.502Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_pv_2_voltage/state/value_sensor {"value":302.2,"units":"V"} [latest-22080]2022-04-02T17:14:19.502Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_pv_2_voltage/state/string_sensor {"value":"302.2"} [latest-22080]2022-04-02T17:14:19.502Z <MQTTController:6:MQTTController.js:801> MQTTController#mqtt echo publishing primary attribute topic reactor/mqtt/hass/sensor_pv_2_voltage/value "302.2" [latest-22080]2022-04-02T17:14:19.503Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_2_voltage/state/value_sensor {"value":302.2,"units":"V"} [latest-22080]2022-04-02T17:14:19.503Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_2_voltage/state/string_sensor {"value":"302.2"} [latest-22080]2022-04-02T17:14:19.503Z <MQTTController:6:MQTTController.js:727> MQTTController#mqtt echo handling entity notification for Entity#hass>sensor_pv_4_current [latest-22080]2022-04-02T17:14:19.503Z <MQTTController:6:MQTTController.js:732> MQTTController#mqtt echo publishing capabilities for entity Entity#hass>sensor_pv_4_current [latest-22080]2022-04-02T17:14:19.503Z <MQTTController:6:MQTTController.js:775> MQTTController#mqtt echo cap x_hass rejected -- default reject extended x_hass [latest-22080]2022-04-02T17:14:19.504Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_pv_4_current/state/value_sensor {"value":0.57,"units":"A"} [latest-22080]2022-04-02T17:14:19.504Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_pv_4_current/state/string_sensor {"value":"0.57"} [latest-22080]2022-04-02T17:14:19.504Z <MQTTController:6:MQTTController.js:801> MQTTController#mqtt echo publishing primary attribute topic reactor/mqtt/hass/sensor_pv_4_current/value "0.57" [latest-22080]2022-04-02T17:14:19.504Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/67/EnergyMetering1/pv_2_voltage, payload=[Buffer]302.2 [latest-22080]2022-04-02T17:14:19.504Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_2_voltage/value "302.2" [latest-22080]2022-04-02T17:14:19.504Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_4_current/state/value_sensor {"value":0.57,"units":"A"} [latest-22080]2022-04-02T17:14:19.504Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_4_current/state/string_sensor {"value":"0.57"} [latest-22080]2022-04-02T17:14:19.505Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/67/EnergyMetering1/pv_4_current, payload=[Buffer]0.57 [latest-22080]2022-04-02T17:14:19.505Z <MQTTController:6:MQTTController.js:856> MQTTController#mqtt handling incoming reactor/mqtt/hass/sensor_pv_4_current/value "0.57" [latest-22080]2022-04-02T17:14:20.716Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/cumulative_active_import/state, payload=[Buffer]40140.484 [latest-22080]2022-04-02T17:14:20.752Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/cumulative_active_export/state, payload=[Buffer]5946.984 [latest-22080]2022-04-02T17:14:20.753Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/cumulative_reactive_import/state, payload=[Buffer]325.049 [latest-22080]2022-04-02T17:14:20.753Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/cumulative_reactive_export/state, payload=[Buffer]3259.873 [latest-22080]2022-04-02T17:14:20.754Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_import/state, payload=[Buffer]5.574 [latest-22080]2022-04-02T17:14:20.754Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_import, payload=[Buffer]5.574 [latest-22080]2022-04-02T17:14:20.754Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/Watts, payload=[Buffer]5574 [latest-22080]2022-04-02T17:14:20.754Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_use, payload=[Buffer]5.741 [latest-22080]2022-04-02T17:14:20.754Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_use_own, payload=[Buffer]0.167 [latest-22080]2022-04-02T17:14:20.754Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_export/state, payload=[Buffer]0.000 [latest-22080]2022-04-02T17:14:20.755Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_import/state, payload=[Buffer]0.000 [latest-22080]2022-04-02T17:14:20.755Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_export/state, payload=[Buffer]0.749 [latest-22080]2022-04-02T17:14:20.756Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_reactive_export, payload=[Buffer]0.749 [latest-22080]2022-04-02T17:14:20.756Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_import_phase_1/state, payload=[Buffer]0.525 [latest-22080]2022-04-02T17:14:20.756Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_import_phase_1, payload=[Buffer]0.525 [latest-22080]2022-04-02T17:14:20.756Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_export_phase_1/state, payload=[Buffer]0.000 [latest-22080]2022-04-02T17:14:20.757Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_import_phase_2/state, payload=[Buffer]3.819 [latest-22080]2022-04-02T17:14:20.757Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_export_phase_2/state, payload=[Buffer]0.000 [latest-22080]2022-04-02T17:14:20.758Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_import_phase_3/state, payload=[Buffer]1.218 [latest-22080]2022-04-02T17:14:20.758Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_import_phase_3, payload=[Buffer]1.218 [latest-22080]2022-04-02T17:14:20.758Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_export_phase_3/state, payload=[Buffer]0.000 [latest-22080]2022-04-02T17:14:20.758Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_import_phase_1/state, payload=[Buffer]0.441 [latest-22080]2022-04-02T17:14:20.758Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_reactive_import_phase_1, payload=[Buffer]0.441 [latest-22080]2022-04-02T17:14:20.759Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_export_phase_1/state, payload=[Buffer]0.000 [latest-22080]2022-04-02T17:14:20.759Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_import_phase_2/state, payload=[Buffer]0.000 [latest-22080]2022-04-02T17:14:20.759Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_export_phase_2/state, payload=[Buffer]0.528 [latest-22080]2022-04-02T17:14:20.760Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_reactive_export_phase_2, payload=[Buffer]0.528 [latest-22080]2022-04-02T17:14:20.760Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_import_phase_3/state, payload=[Buffer]0.000 [latest-22080]2022-04-02T17:14:20.760Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_export_phase_3/state, payload=[Buffer]0.654 [latest-22080]2022-04-02T17:14:20.760Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_reactive_export_phase_3, payload=[Buffer]0.654 [latest-22080]2022-04-02T17:14:20.761Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/voltage_phase_1/state, payload=[Buffer]235.500 [latest-22080]2022-04-02T17:14:20.761Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/voltage_phase_1, payload=[Buffer]235.5 [latest-22080]2022-04-02T17:14:20.761Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/voltage_phase_2/state, payload=[Buffer]232.900 [latest-22080]2022-04-02T17:14:20.761Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/voltage_phase_2, payload=[Buffer]232.9 [latest-22080]2022-04-02T17:14:20.761Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/voltage_phase_3/state, payload=[Buffer]235.600 [latest-22080]2022-04-02T17:14:20.761Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/voltage_phase_3, payload=[Buffer]235.6 [latest-22080]2022-04-02T17:14:20.762Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/current_phase_1/state, payload=[Buffer]2.900 [latest-22080]2022-04-02T17:14:20.762Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/current_phase_1, payload=[Buffer]2.9 [latest-22080]2022-04-02T17:14:20.762Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/current_phase_2/state, payload=[Buffer]16.600 [latest-22080]2022-04-02T17:14:20.762Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/current_phase_3/state, payload=[Buffer]5.800 [latest-22080]2022-04-02T17:14:20.762Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/current_phase_3, payload=[Buffer]5.8 [latest-22080]2022-04-02T17:14:21.909Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=tele/Pooltemp/STATE, payload=[Buffer]{"Time":"2022-04-02T19:14:21","Uptime":"54T18:23:25","UptimeSec":4731805,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":92,"POWER":"ON","Wifi":{"AP":1,"SSId":"Orion","BSSId":"E0:3F:49:06:F1:30","Channel":6,"Mode":"11n","RSSI":58,"Signal":-71,"LinkCount":4,"Downtime":"0T00:00:19"}} [latest-22080]2022-04-02T17:14:21.909Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/35/HaDevice1/LastUpdate, payload=[Buffer]1648919661 [latest-22080]2022-04-02T17:14:21.909Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/HaDevice1/LastUpdate, payload=[Buffer]1648919661 [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/tele, payload=[Buffer]{"Time":"2022-04-02T19:14:21","Uptime":"54T18:23:25","UptimeSec":4731805,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":92,"POWER":"ON","Wifi":{"AP":1,"SSId":"Orion","BSSId":"E0:3F:49:06:F1:30","Channel":6,"Mode":"11n","RSSI":58,"Signal":-71,"LinkCount":4,"Downtime":"0T00:00:19"}} [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/UptimeSec, payload=[Buffer]4731805 [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/Time, payload=[Buffer]2022-04-02T19:14:21 [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Wifi/RSSI, payload=[Buffer]58 [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Wifi/Signal, payload=[Buffer]-71 [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/Uptime, payload=[Buffer]54T18:23:25 [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=tele/Pooltemp/SENSOR, payload=[Buffer]{"Time":"2022-04-02T19:14:21","DS18B20":{"Id":"02049245CBF4","Temperature":3.4},"TempUnit":"C"} [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:278> MQTTController#mqtt dispatching tele/Pooltemp/SENSOR to pooltemp [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:5:MQTTController.js:508> MQTTController#mqtt handling tele/Pooltemp/SENSOR for pooltemp: {"Time":"2022-04-02T19:14:21","DS18B20":{"Id":"02049245CBF4","Temperature":3.4},"TempUnit":"C"} [latest-22080]2022-04-02T17:14:21.910Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>pooltemp: [Object]{ "temperature_sensor.value": { "json_payload": true, "if_expr": "! isnull( payload?[ source ?? \"Global\" ] )", "expr": "payload[ source ?? \"Global\" ]?.Temperature" }, "temperature_sensor.units": { "json_payload": true, "if_expr": "! isnull( payload?.TempUnit )", "expr": "payload.TempUnit" } } [latest-22080]2022-04-02T17:14:21.911Z <MQTTController:5:MQTTController.js:604> MQTTController#mqtt setting Entity#mqtt>pooltemp temperature_sensor.units=C [latest-22080]2022-04-02T17:14:21.911Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/tele, payload=[Buffer]{"Time":"2022-04-02T19:14:21","DS18B20":{"Id":"02049245CBF4","Temperature":3.4},"TempUnit":"C"} [latest-22080]2022-04-02T17:14:21.911Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=stat/Pooltemp/RESULT, payload=[Buffer]{"Var1":"3.4"} [latest-22080]2022-04-02T17:14:22.210Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=stat/Pooltemp/RESULT, payload=[Buffer]{"WebSend":"Done"} [latest-22080]2022-04-02T17:14:22.211Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/10086/TemperatureSensor1/CurrentTemperature, payload=[Buffer]3.4 [latest-22080]2022-04-02T17:14:22.211Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/5/VeraBridge1/LastUpdate, payload=[Buffer]1648919662 [latest-22080]2022-04-02T17:14:26.644Z <wsapi:INFO> client "192.168.1.238#1" closed, code=1001, reason= [latest-22080]2022-04-02T17:14:27.081Z <wsapi:INFO> wsapi: connection from "192.168.1.238"
-
@crille said in Issue with Tasmota sensors and MQTTController later than 22024:
I made custom templates because I never got the default to work and I wanted a init on restarts of MSR.
I have to confess that's a bit disappointing, because if nobody tells me something doesn't work, I may never know to fix it. I rely on everyone to be ears, eyes, and hands because even if I had every device and could test every thing, the chances of me using things in the same ways, and in all of the possible ways, that people can and do are slim to non-existent. You're saying versions before 22024 are working for you, and today is 22092, 68 days later. That's a bummer.
But back to the technical side, you don't need to make your own template just to have an init. You can just add your init to your entity configuration. All that
uses_template
does is merge the referenced template into the entity config, with priority given to config (that is, if you haveinit
in your config and there's aninit
in the template, your config will prevail). I will make this more clear in the docs.And, that init really shouldn't be necessary if your Tasmota has the retain flag set for those messages -- MQTTController would get the message with last state when it subscribes after it connects. At least, that would be the case for a compliant broker (I have no idea what you're using as a broker).
Log snippets are helpful. I think I spotted an issue. Let me set up a test case and run your messages through statically, and see if I'm right, and if I am, what I can do about it. Stay tuned!
-
Yes, sorry for not being persistent with my issue on this, we kind of touched it before here but obviously it worked for you and no one else had issues so I made it work for me.
I first noticed my current issue in 22029 (mentioned in MantisBT #0000303, not related to this, as “other issues”) and haven’t had the time to mess with a stable setup to report the errors since. My apologies!
Better late than never I’m doing my part now when life allows the time for fun stuff like this
I believe openLuup MQTT broker supports the retain flag now and will configure my devices to apply it, if not I will move them to my Mosquitto broker when I have the time.
Thank you for your patience and support!
-
@crille I'm sorry you've had to live with it this long. Let's get it straightened out.
New build 22092 of MQTTController is available for download/install. Let's see if that gets things rolling (your template or the included one, either way, but it will require
json_payload: true
where JSON is used). -
OK, new tests done.
This is done with 22092 with log level 6.
reactor.yaml
"pooltemp": name: "Pooltemp" topic: "Pooltemp" source: "DS18B20" uses_template: tasmota_sensor_temperature
as you can see it's using included default template
tasmota_sensor_temperature: type: ValueSensor capabilities: [temperature_sensor] primary_attribute: temperature_sensor.value events: "tele/%topic%/SENSOR": "temperature_sensor.value": json_payload: true if_expr: '! isnull( payload?[ source ?? "Global" ] )' expr: 'payload[ source ?? "Global" ]?.Temperature' "temperature_sensor.units": json_payload: true if_expr: '! isnull( payload?.TempUnit )' expr: payload.TempUnit
I've set
SensorRetain 1
in Tasmota and the value is now retained in openLuup
log after restart of MSR
[latest-22080]2022-04-03T13:06:19.815Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/current_phase_3/state, payload=[Buffer]5.800 [latest-22080]2022-04-03T13:06:27.251Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=tele/Växthuset/SENSOR, payload=[Buffer]{"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} [latest-22080]2022-04-03T13:06:27.251Z <MQTTController:6:MQTTController.js:278> MQTTController#mqtt dispatching tele/Växthuset/SENSOR to esp32 [latest-22080]2022-04-03T13:06:27.251Z <MQTTController:5:MQTTController.js:508> MQTTController#mqtt handling tele/Växthuset/SENSOR for esp32: {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} [latest-22080]2022-04-03T13:06:27.251Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>esp32: [Object]{ "temperature_sensor.value": { "json_payload": true, "if_expr": "! isnull( payload?[ source ?? \"Global\" ] )", "expr": "payload[ source ?? \"Global\" ]?.Temperature" }, "temperature_sensor.units": { "json_payload": true, "if_expr": "! isnull( payload?.TempUnit )", "expr": "payload.TempUnit" } } [latest-22080]2022-04-03T13:06:27.251Z <MQTTController:6:MQTTController.js:278> MQTTController#mqtt dispatching tele/Växthuset/SENSOR to flora1 [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:5:MQTTController.js:508> MQTTController#mqtt handling tele/Växthuset/SENSOR for flora1: {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>flora1: [Object]{ "temperature_sensor.value": { "if_expr": "! isnull( payload?[ source ] )", "expr": "payload?[source]?.Temperature" }, "temperature_sensor.units": "C", "humidity_sensor.value": { "if_expr": "! isnull( payload?[ source ] )", "expr": "payload?[source]?.Moisture" }, "humidity_sensor.units": "%", "light_sensor.value": { "if_expr": "! isnull( payload?[ source ] )", "expr": "payload?[source]?.Illuminance" }, "light_sensor.units": "lux", "value_sensor.value": { "if_expr": "! isnull( payload?[ source ] )", "expr": "payload?[source]?.Fertility" }, "value_sensor.units": "µS/cm" } [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:ERR> MQTTController#mqtt event handler failed for tele/Växthuset/SENSOR on flora1: [ReferenceError]ReferenceError: Invalid reference to member [object Object] of {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:CRIT> ReferenceError: Invalid reference to member [object Object] of {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} ReferenceError: Invalid reference to member [object Object] of {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} at _run (/home/homebridge/reactor/common/lexp.js:1431:31) at /home/homebridge/reactor/common/lexp.js:1512:33 at Array.forEach (<anonymous>) at _run (/home/homebridge/reactor/common/lexp.js:1511:28) at _run (/home/homebridge/reactor/common/lexp.js:1414:33) at /home/homebridge/reactor/common/lexp.js:1265:29 at Array.forEach (<anonymous>) at _run (/home/homebridge/reactor/common/lexp.js:1264:28) at Object.run (/home/homebridge/reactor/common/lexp.js:1645:22) at MQTTController.handle_event (/home/homebridge/reactor/ext/MQTTController/MQTTController.js:567:44) [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:6:MQTTController.js:278> MQTTController#mqtt dispatching tele/Växthuset/SENSOR to flora2 [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:5:MQTTController.js:508> MQTTController#mqtt handling tele/Växthuset/SENSOR for flora2: {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>flora2: [Object]{ "temperature_sensor.value": { "if_expr": "! isnull( payload?[ source ] )", "expr": "payload?[source]?.Temperature" }, "temperature_sensor.units": "C", "humidity_sensor.value": { "if_expr": "! isnull( payload?[ source ] )", "expr": "payload?[source]?.Moisture" }, "humidity_sensor.units": "%", "light_sensor.value": { "if_expr": "! isnull( payload?[ source ] )", "expr": "payload?[source]?.Illuminance" }, "light_sensor.units": "lux", "value_sensor.value": { "if_expr": "! isnull( payload?[ source ] )", "expr": "payload?[source]?.Fertility" }, "value_sensor.units": "µS/cm" } [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:ERR> MQTTController#mqtt event handler failed for tele/Växthuset/SENSOR on flora2: [ReferenceError]ReferenceError: Invalid reference to member [object Object] of {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} [latest-22080]2022-04-03T13:06:27.252Z <MQTTController:CRIT> ReferenceError: Invalid reference to member [object Object] of {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} ReferenceError: Invalid reference to member [object Object] of {"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} at _run (/home/homebridge/reactor/common/lexp.js:1431:31) at /home/homebridge/reactor/common/lexp.js:1512:33 at Array.forEach (<anonymous>) at _run (/home/homebridge/reactor/common/lexp.js:1511:28) at _run (/home/homebridge/reactor/common/lexp.js:1414:33) at /home/homebridge/reactor/common/lexp.js:1265:29 at Array.forEach (<anonymous>) at _run (/home/homebridge/reactor/common/lexp.js:1264:28) at Object.run (/home/homebridge/reactor/common/lexp.js:1645:22) at MQTTController.handle_event (/home/homebridge/reactor/ext/MQTTController/MQTTController.js:567:44) [latest-22080]2022-04-03T13:06:27.253Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/35/HaDevice1/LastUpdate, payload=[Buffer]1648991187 [latest-22080]2022-04-03T13:06:27.253Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30005/HaDevice1/LastUpdate, payload=[Buffer]1648991187 [latest-22080]2022-04-03T13:06:27.253Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30005/Växthuset/tele, payload=[Buffer]{"Time":"2022-04-03T15:06:27","Flora6cab88":{"mac":"c47c8d6cab88","Temperature":10.5,"Illuminance":547,"Moisture":0,"Fertility":0,"RSSI":-97}} [latest-22080]2022-04-03T13:06:27.253Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30005/Växthuset/Time, payload=[Buffer]2022-04-03T15:06:27 [latest-22080]2022-04-03T13:06:27.253Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30005/Flora6cab88/Illuminance, payload=[Buffer]547 [latest-22080]2022-04-03T13:06:27.253Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30005/Flora6cab88/RSSI, payload=[Buffer]-97 [latest-22080]2022-04-03T13:06:27.254Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30005/Flora6cab88/Temperature, payload=[Buffer]10.5 [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=tele/Pooltemp/STATE, payload=[Buffer]{"Time":"2022-04-03T15:06:27","Uptime":"55T14:15:31","UptimeSec":4803331,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":93,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Orion","BSSId":"E0:3F:49:06:F1:30","Channel":6,"Mode":"11n","RSSI":46,"Signal":-77,"LinkCount":4,"Downtime":"0T00:00:19"}} [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/35/HaDevice1/LastUpdate, payload=[Buffer]1648991188 [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/HaDevice1/LastUpdate, payload=[Buffer]1648991188 [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/tele, payload=[Buffer]{"Time":"2022-04-03T15:06:27","Uptime":"55T14:15:31","UptimeSec":4803331,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":93,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Orion","BSSId":"E0:3F:49:06:F1:30","Channel":6,"Mode":"11n","RSSI":46,"Signal":-77,"LinkCount":4,"Downtime":"0T00:00:19"}} [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/UptimeSec, payload=[Buffer]4803331 [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/Time, payload=[Buffer]2022-04-03T15:06:27 [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/Uptime, payload=[Buffer]55T14:15:31 [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=tele/Pooltemp/SENSOR, payload=[Buffer]{"Time":"2022-04-03T15:06:28","DS18B20":{"Id":"02049245CBF4","Temperature":8.8},"TempUnit":"C"} [latest-22080]2022-04-03T13:06:28.452Z <MQTTController:6:MQTTController.js:278> MQTTController#mqtt dispatching tele/Pooltemp/SENSOR to pooltemp [latest-22080]2022-04-03T13:06:28.453Z <MQTTController:5:MQTTController.js:508> MQTTController#mqtt handling tele/Pooltemp/SENSOR for pooltemp: {"Time":"2022-04-03T15:06:28","DS18B20":{"Id":"02049245CBF4","Temperature":8.8},"TempUnit":"C"} [latest-22080]2022-04-03T13:06:28.453Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>pooltemp: [Object]{ "temperature_sensor.value": { "json_payload": true, "if_expr": "! isnull( payload?[ source ?? \"Global\" ] )", "expr": "payload[ source ?? \"Global\" ]?.Temperature" }, "temperature_sensor.units": { "json_payload": true, "if_expr": "! isnull( payload?.TempUnit )", "expr": "payload.TempUnit" } } [latest-22080]2022-04-03T13:06:28.453Z <MQTTController:5:MQTTController.js:604> MQTTController#mqtt setting Entity#mqtt>pooltemp temperature_sensor.units=C [latest-22080]2022-04-03T13:06:28.453Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/tele, payload=[Buffer]{"Time":"2022-04-03T15:06:28","DS18B20":{"Id":"02049245CBF4","Temperature":8.8},"TempUnit":"C"} [latest-22080]2022-04-03T13:06:28.453Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/DS18B20/Temperature, payload=[Buffer]8.8 [latest-22080]2022-04-03T13:06:28.453Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/30003/Pooltemp/Time, payload=[Buffer]2022-04-03T15:06:28 [latest-22080]2022-04-03T13:06:28.458Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=stat/Pooltemp/RESULT, payload=[Buffer]{"Var1":"8.8"} [latest-22080]2022-04-03T13:06:28.458Z <MQTTController:6:MQTTController.js:278> MQTTController#mqtt dispatching stat/Pooltemp/RESULT to dräneringspump [latest-22080]2022-04-03T13:06:28.458Z <MQTTController:5:MQTTController.js:508> MQTTController#mqtt handling stat/Pooltemp/RESULT for dräneringspump: {"Var1":"8.8"} [latest-22080]2022-04-03T13:06:28.458Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>dräneringspump: [Object]{ "power_switch.state": { "if_expr": "! isnull( payload[ \"POWER\" + str(unit) ] )", "expr": "upper( payload[ \"POWER\" + str(unit) ] ) == \"ON\"" } } [latest-22080]2022-04-03T13:06:28.458Z <MQTTController:ERR> MQTTController#mqtt event handler failed for stat/Pooltemp/RESULT on dräneringspump: [ReferenceError]ReferenceError: Invalid reference to member [object Object] of {"Var1":"8.8"} [latest-22080]2022-04-03T13:06:28.458Z <MQTTController:CRIT> ReferenceError: Invalid reference to member [object Object] of {"Var1":"8.8"} ReferenceError: Invalid reference to member [object Object] of {"Var1":"8.8"} at _run (/home/homebridge/reactor/common/lexp.js:1431:31) at /home/homebridge/reactor/common/lexp.js:1512:33 at Array.forEach (<anonymous>) at _run (/home/homebridge/reactor/common/lexp.js:1511:28) at _run (/home/homebridge/reactor/common/lexp.js:1414:33) at /home/homebridge/reactor/common/lexp.js:1265:29 at Array.forEach (<anonymous>) at _run (/home/homebridge/reactor/common/lexp.js:1264:28) at Object.run (/home/homebridge/reactor/common/lexp.js:1645:22) at MQTTController.handle_event (/home/homebridge/reactor/ext/MQTTController/MQTTController.js:567:44) [latest-22080]2022-04-03T13:06:28.733Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/10086/TemperatureSensor1/CurrentTemperature, payload=[Buffer]8.6 [latest-22080]2022-04-03T13:06:28.733Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/5/VeraBridge1/LastUpdate, payload=[Buffer]1648991188 [latest-22080]2022-04-03T13:06:28.774Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=stat/Pooltemp/RESULT, payload=[Buffer]{"WebSend":"Done"} [latest-22080]2022-04-03T13:06:28.774Z <MQTTController:6:MQTTController.js:278> MQTTController#mqtt dispatching stat/Pooltemp/RESULT to dräneringspump [latest-22080]2022-04-03T13:06:28.774Z <MQTTController:5:MQTTController.js:508> MQTTController#mqtt handling stat/Pooltemp/RESULT for dräneringspump: {"WebSend":"Done"} [latest-22080]2022-04-03T13:06:28.774Z <MQTTController:6:MQTTController.js:532> MQTTController#mqtt events for Entity#mqtt>dräneringspump: [Object]{ "power_switch.state": { "if_expr": "! isnull( payload[ \"POWER\" + str(unit) ] )", "expr": "upper( payload[ \"POWER\" + str(unit) ] ) == \"ON\"" } } [latest-22080]2022-04-03T13:06:28.774Z <MQTTController:ERR> MQTTController#mqtt event handler failed for stat/Pooltemp/RESULT on dräneringspump: [ReferenceError]ReferenceError: Invalid reference to member [object Object] of {"WebSend":"Done"} [latest-22080]2022-04-03T13:06:28.774Z <MQTTController:CRIT> ReferenceError: Invalid reference to member [object Object] of {"WebSend":"Done"} ReferenceError: Invalid reference to member [object Object] of {"WebSend":"Done"} at _run (/home/homebridge/reactor/common/lexp.js:1431:31) at /home/homebridge/reactor/common/lexp.js:1512:33 at Array.forEach (<anonymous>) at _run (/home/homebridge/reactor/common/lexp.js:1511:28) at _run (/home/homebridge/reactor/common/lexp.js:1414:33) at /home/homebridge/reactor/common/lexp.js:1265:29 at Array.forEach (<anonymous>) at _run (/home/homebridge/reactor/common/lexp.js:1264:28) at Object.run (/home/homebridge/reactor/common/lexp.js:1645:22) at MQTTController.handle_event (/home/homebridge/reactor/ext/MQTTController/MQTTController.js:567:44) [latest-22080]2022-04-03T13:06:29.774Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/cumulative_active_import/state, payload=[Buffer]40196.133 [latest-22080]2022-04-03T13:06:29.804Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/cumulative_active_export/state, payload=[Buffer]5955.417 [latest-22080]2022-04-03T13:06:29.804Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/cumulative_reactive_import/state, payload=[Buffer]325.054 [latest-22080]2022-04-03T13:06:29.805Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/cumulative_reactive_export/state, payload=[Buffer]3266.027 [latest-22080]2022-04-03T13:06:29.805Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_import/state, payload=[Buffer]4.250 [latest-22080]2022-04-03T13:06:29.805Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_import, payload=[Buffer]4.250 [latest-22080]2022-04-03T13:06:29.805Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/Watts, payload=[Buffer]4250 [latest-22080]2022-04-03T13:06:29.806Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_use, payload=[Buffer]7.933 [latest-22080]2022-04-03T13:06:29.806Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_export/state, payload=[Buffer]0.000 [latest-22080]2022-04-03T13:06:29.807Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_import/state, payload=[Buffer]0.000 [latest-22080]2022-04-03T13:06:29.807Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_export/state, payload=[Buffer]0.589 [latest-22080]2022-04-03T13:06:29.807Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_reactive_export, payload=[Buffer]0.589 [latest-22080]2022-04-03T13:06:29.807Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_import_phase_1/state, payload=[Buffer]0.652 [latest-22080]2022-04-03T13:06:29.808Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_import_phase_1, payload=[Buffer]0.652 [latest-22080]2022-04-03T13:06:29.808Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_export_phase_1/state, payload=[Buffer]0.000 [latest-22080]2022-04-03T13:06:29.808Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_import_phase_2/state, payload=[Buffer]2.673 [latest-22080]2022-04-03T13:06:29.808Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_import_phase_2, payload=[Buffer]2.673 [latest-22080]2022-04-03T13:06:29.810Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_export_phase_2/state, payload=[Buffer]0.000 [latest-22080]2022-04-03T13:06:29.810Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_import_phase_3/state, payload=[Buffer]0.844 [latest-22080]2022-04-03T13:06:29.810Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_active_import_phase_3, payload=[Buffer]0.844 [latest-22080]2022-04-03T13:06:29.810Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_active_export_phase_3/state, payload=[Buffer]0.000 [latest-22080]2022-04-03T13:06:29.810Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_import_phase_1/state, payload=[Buffer]0.954 [latest-22080]2022-04-03T13:06:29.810Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_reactive_import_phase_1, payload=[Buffer]0.954 [latest-22080]2022-04-03T13:06:29.810Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_export_phase_1/state, payload=[Buffer]0.000 [latest-22080]2022-04-03T13:06:29.811Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_import_phase_2/state, payload=[Buffer]0.000 [latest-22080]2022-04-03T13:06:29.811Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_export_phase_2/state, payload=[Buffer]0.432 [latest-22080]2022-04-03T13:06:29.811Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_reactive_export_phase_2, payload=[Buffer]0.432 [latest-22080]2022-04-03T13:06:29.811Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_import_phase_3/state, payload=[Buffer]0.000 [latest-22080]2022-04-03T13:06:29.812Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/momentary_reactive_export_phase_3/state, payload=[Buffer]1.118 [latest-22080]2022-04-03T13:06:29.812Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/momentary_reactive_export_phase_3, payload=[Buffer]1.118 [latest-22080]2022-04-03T13:06:29.812Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/voltage_phase_1/state, payload=[Buffer]232.900 [latest-22080]2022-04-03T13:06:29.812Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/voltage_phase_1, payload=[Buffer]232.9 [latest-22080]2022-04-03T13:06:29.812Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/voltage_phase_2/state, payload=[Buffer]231.200 [latest-22080]2022-04-03T13:06:29.813Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/voltage_phase_2, payload=[Buffer]231.2 [latest-22080]2022-04-03T13:06:29.813Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/voltage_phase_3/state, payload=[Buffer]233.800 [latest-22080]2022-04-03T13:06:29.813Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/voltage_phase_3, payload=[Buffer]233.8 [latest-22080]2022-04-03T13:06:29.813Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/current_phase_1/state, payload=[Buffer]4.900 [latest-22080]2022-04-03T13:06:29.813Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/current_phase_1, payload=[Buffer]4.9 [latest-22080]2022-04-03T13:06:29.814Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/current_phase_2/state, payload=[Buffer]11.700 [latest-22080]2022-04-03T13:06:29.814Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/current_phase_2, payload=[Buffer]11.7 [latest-22080]2022-04-03T13:06:29.814Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=smartreader/sensor/current_phase_3/state, payload=[Buffer]5.900 [latest-22080]2022-04-03T13:06:29.814Z <MQTTController:6:MQTTController.js:250> MQTTController#mqtt message topic=openLuup/update/56/EnergyMetering1/current_phase_3, payload=[Buffer]5.9 [latest-22080]2022-04-03T13:06:30.477Z <MQTTController:6:MQTTController.js:727> MQTTController#mqtt echo handling entity notification for Entity#hass>sensor_input_power [latest-22080]2022-04-03T13:06:30.477Z <MQTTController:6:MQTTController.js:732> MQTTController#mqtt echo publishing capabilities for entity Entity#hass>sensor_input_power [latest-22080]2022-04-03T13:06:30.477Z <MQTTController:6:MQTTController.js:775> MQTTController#mqtt echo cap x_hass rejected -- default reject extended x_hass [latest-22080]2022-04-03T13:06:30.477Z <MQTTController:6:MQTTController.js:793> MQTTController#mqtt echo publishing reactor/mqtt/hass/sensor_input_power/state/value_sensor {"value":3647,"units":"W"}
-
Can you confirm in the startup messages that MQTTController is version 22092? The messages are not consistent with what should be seen in the new version.
-
This is from 22024
[latest-22080]2022-04-03T14:52:25.150Z <SystemController:null> Module SystemController v22080 [latest-22080]2022-04-03T14:52:25.151Z <Structure:INFO> Structure#1 loading controller interface mqtt (MQTTController) [latest-22080]2022-04-03T14:52:25.152Z <MQTTController:null> Module MQTTController v22009 [latest-22080]2022-04-03T14:52:25.191Z <MQTTController:INFO> instance topic ident is mqtt
and this is from 22092
[latest-22080]2022-04-03T14:56:46.397Z <SystemController:null> Module SystemController v22080 [latest-22080]2022-04-03T14:56:46.398Z <Structure:INFO> Structure#1 loading controller interface mqtt (MQTTController) [latest-22080]2022-04-03T14:56:46.400Z <MQTTController:null> Module MQTTController v22029 [latest-22080]2022-04-03T14:56:46.437Z <MQTTController:INFO> instance topic ident is mqtt
-
Line 3 from 22092 says... 22029... dyslexia in version! That's a build error, and a strange coincidence at that.
I just rebuilt the package. Re-download it and run the install again, then try. It should say 22092 at startup.
-
Yup, now I can confirm it's version 22092
[latest-22080]2022-04-03T15:24:40.904Z <SystemController:null> Module SystemController v22080 [latest-22080]2022-04-03T15:24:40.905Z <Structure:INFO> Structure#1 loading controller interface mqtt (MQTTController) [latest-22080]2022-04-03T15:24:40.906Z <MQTTController:null> Module MQTTController v22092 [latest-22080]2022-04-03T15:24:40.943Z <MQTTController:INFO> instance topic ident is mqtt
AND I now get the value for temperature on the next tele, but not the retained value at startup...?
My custom template using init is also working when JSON payload is declared.Tell me what you need next.
-
OK. I can see on my Tasmota devices that it doesn't send the retain flag
on
... and I can't find that in Tasmota configuration... seems like a big hole, actually. I assumed that would be somewhere, and I'm disappointed that I'm apparently wrong.So, init will be required. However, your
init
should work with the included template (no need to copy the template to your local config, just put yourinit
afteruses_template
). If that's not working, I'd like to know.EDIT: I found it... it's obscure. In the Tasmota console (it's not in the GUI), you need to type each of:
PowerRetain on SensorRetain on StateRetain on SwitchRetain on
For your temperature sensor,
SensorRetain
may be sufficient, but I don't see why you would not use it for other types as well. -
@crille said in Issue with Tasmota sensors and MQTTController later than 22024:
I've set SensorRetain 1 in Tasmota and the value is now retained in openLuup
Yes, I've done that but the value does not get set when I restart MSR for some reason.
-
I had to restart my Tasmota device to get it to work, and of course, force state/value changes on the device to get it to send a first message with that flag set.
-
Here's what my log looks like with Mosquitto broker and the Tasmota device disconnected from power (so unable to publish -- anything Tasmota is therefore retained and sent from the broker):
[###BUILDVERSION###]2022-04-03T17:37:38.285Z <MQTTController:null> Module MQTTController v22092 [###BUILDVERSION###]2022-04-03T17:37:38.323Z <MQTTController:5:Controller.js:90> [MQTTController:constructor] created controller mqtt [###BUILDVERSION###]2022-04-03T17:37:38.323Z <MQTTController:INFO> instance topic ident is mqtt [###BUILDVERSION###]2022-04-03T17:37:38.376Z <MQTTController:5:MQTTController.js:70> MQTTController#mqtt configuring entity blueiris_cam6_motion [###BUILDVERSION###]2022-04-03T17:37:38.376Z <MQTTController:5:MQTTController.js:70> MQTTController#mqtt configuring entity blueiris_cam13_motion [###BUILDVERSION###]2022-04-03T17:37:38.376Z <MQTTController:5:MQTTController.js:70> MQTTController#mqtt configuring entity "75e505_1" [###BUILDVERSION###]2022-04-03T17:37:38.377Z <MQTTController:5:MQTTController.js:70> MQTTController#mqtt configuring entity "75e505_2" [###BUILDVERSION###]2022-04-03T17:37:38.377Z <MQTTController:NOTICE> Connecting to broker mqtt://192.168.0.66:1883/ [###BUILDVERSION###]2022-04-03T17:37:38.377Z <MQTTController:5:MQTTController.js:241> MQTTController#mqtt connecting to mqtt://192.168.0.66:1883/ with options [Object]{ "reconnectPeriod": 15000, "clientId": "reactor_drupal_mqtt", "connectTimeout": 10000, "resubscribe": false, "will": { "topic": "reactor/mqtt/LWT", "payload": "offline", "qos": 1, "retain": true, "properties": { "willDelayInterval": 30 } } } [###BUILDVERSION###]2022-04-03T17:37:38.474Z <MQTTController:INFO> connected; opening subscriptions [###BUILDVERSION###]2022-04-03T17:37:38.477Z <MQTTController:INFO> Sending inits and going online! [###BUILDVERSION###]2022-04-03T17:37:38.478Z <MQTTController:NOTICE> Controller MQTTController#mqtt is now online. [###BUILDVERSION###]2022-04-03T17:37:38.488Z <MQTTController:5:MQTTController.js:521> MQTTController#mqtt handling tele/tasmota_75E505/STATE for "75e505_1": {"Time":"2022-04-03T18:32:34","Uptime":"0T00:10:10","UptimeSec":610,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"ON","Wifi":{"AP":1,"SSId":"SupremeGarden","BSSId":"44:D9:E7:03:C7:3A","Channel":6,"Mode":"11n","RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:04"}} [###BUILDVERSION###]2022-04-03T17:37:38.489Z <MQTTController:5:MQTTController.js:626> MQTTController#mqtt setting Entity#mqtt>75e505_1 power_switch.state=true [###BUILDVERSION###]2022-04-03T17:37:38.489Z <MQTTController:5:MQTTController.js:521> MQTTController#mqtt handling tele/tasmota_75E505/STATE for "75e505_2": {"Time":"2022-04-03T18:32:34","Uptime":"0T00:10:10","UptimeSec":610,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"ON","Wifi":{"AP":1,"SSId":"SupremeGarden","BSSId":"44:D9:E7:03:C7:3A","Channel":6,"Mode":"11n","RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:04"}} [###BUILDVERSION###]2022-04-03T17:37:38.489Z <MQTTController:5:MQTTController.js:626> MQTTController#mqtt setting Entity#mqtt>75e505_2 power_switch.state=true [###BUILDVERSION###]2022-04-03T17:37:38.494Z <MQTTController:5:MQTTController.js:521> MQTTController#mqtt handling stat/tasmota_75E505/POWER1 for "75e505_1": ON [###BUILDVERSION###]2022-04-03T17:37:38.494Z <MQTTController:5:MQTTController.js:626> MQTTController#mqtt setting Entity#mqtt>75e505_1 power_switch.state=true
You can see on line 10, it says
connected; opening subscriptions
, and then immediately thereafter it gets the retained messages from the broker. You should be able to confirm similar behavior at log level 5. Given that retain is a new feature for openLuup, I would suggest you confirm it's actually sending the messages; clearly it knows it should, but that doesn't prove it does. -
Yup, that's it. I moved the Tasmota device to Mosquitto and can replicate your log. So with openLuup I have to use
init
as it does not seem to respond with the retained messages at MSR startup.
I will consider moving all my devices to Mosquitto in the future, except for those I need to do Luup calculations and variable sets on virtual devices.Oddly the rebuild seems to resolved most of my problems and I'm now up to date with the MQTTController, which was the main issue. Thank you very much for that!
-
No worries!
Paging @akbooer.... see the last couple of messages above. Apparently @Crille has some retained messages (they show as retained in the openLuup UI) that are not being sent by openLuup's broker when Reactor subscribes. FYI, Reactor uses a "catch-all" subscription (complete wildcard, i.e.
#
is the entire subscription request). -
Thanks for the heads up. Clearly something missing here that needs to be investigated.