Replies: 6 comments 2 replies
-
|
I suppose your current version of Ah I see it doesn't add the LoRaWan sensor like it didn't add the zigbee sensors in the past. EDIT1: I think your second solution looks best. Just keep a flag in memory for a one-time send if the sensor is first processed by LwDecode.be to not send it every time the same sensor is received. |
Beta Was this translation helpful? Give feedback.
-
|
OK ... will see if i can put together a PR |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
xdrv_12_discovery is the way to go. Forget about xdrv_12_home_assistant. The latter is disabled since years. |
Beta Was this translation helpful? Give feedback.
-
|
Had some success There are 3 methods to advertise sensors to HA
But because LoRaWAN sensors are not known at bootup what I have working is a hybrid solution:
The HA Single Sensor message code is all implemented in Berry
Comment: Reworking the main Tasmota code base to resend theTasmota Discovery message (method 1 above) to add LoRaWAN sensors when decoders are loaded was explored... but way too complicated. Next steps:
|
Beta Was this translation helpful? Give feedback.
-
|
See these PRs |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
There is a feature where Tasmota can send an MQTT message that informs the Home Assistant (HA) Tasmota Integration of available sensors, and then HA adds those sensors automatically and starts capturing their values.
This feature fires (to my knowledge) just after boot up.
This does not work with LoRaWAN sensors (yet).
As a test, I manually sent an MQTT message from the Console as below (thank you google AI) and HA correctly added my LoRaWAN sensor. (Extra line breaks added for clarity)
I would like to open a discussion on the smartest way to add LoRaWAN sensors to the HA Tasmota integration.
Can the MQTT message be sent just after bootup?
No. The way LoRaWAN works in Tasmota is that the necessary decoders are added at RUN time. When Tasmota starts it makes no assumptions as to which sensors are attached. Indeed, the design includes the feature that new LoRaWAN sensors can be added during run time.
When should the LoRaWAN
homeassistant/sensor/xxMQTT message be sent?I propose it is part of the Berry code (
LwDecode.be) that fires when a decoder is added at Run Time.Anybody see any issues with this plan?
If not ... I will look at a PR to add this feature.
Beta Was this translation helpful? Give feedback.
All reactions