Replies: 19 comments 24 replies
-
@altserg I'm looking into this but I am not sure that this is even possible. You can try the attached tasmota32-bluetooth-test-discovery1.zip 2022-03-23 23:31:57: tasmota/discovery/A4CF1204BFD0/sensors {"sn":{"ATC92d36d":{"alias":"chbre_coline","mac":"a4c13892d36d","Temperature":18.4,"Humidity":51.2,"DewPoint":8.1,"Btn":1,"Battery":84,"RSSI":-95},"TempUnit":"C"},"ver":1} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@altserg Hi, I think you're experiencing the same issue as I described some time ago: The stale bot closed the issue and I didn't want to nag the developers any more, as I found a work around that works fine for me, even though it prevents me automatically updating the firmware, as I need to recompile with specific flags enabed / disabled: |
Beta Was this translation helpful? Give feedback.
-
I also see the same behavior. But the issue is different as I do not want to use legacy HASS discovery but native Tasmota discovery. Legacy HASS discovery is not supported anymore. Tasmota 9.x seems to support both Legacy HASS and native Tasmota discosvery via setoption19, but never version 11.x only supports one at a time. mi32option6 1 does not publish legacy homeassistant discovery messages |
Beta Was this translation helpful? Give feedback.
-
@altserg I totally agree with you. I was just coming from a use case, where I had already a working Home Assistant setup with a Tasmotized ESP32 used as BLE bridge to extend the range of remote and outside Xiaomi sensors. I was surprised that the HASS discovery was dropped with no equivalent support with native Tasmota discovery, that's why my immediate goal was to have my working setup back again, although with deprecated functionality. So I'm actually in the same boat as you - I'd like to have the dynamically discovered BLE sensors autoconfigured in HA using the native Tasmota discovery mechanism. Let's hope this is doable after all. |
Beta Was this translation helpful? Give feedback.
-
I have 7 Xiaomi T&H sensors and I get discovery publications with the above firmware
|
Beta Was this translation helpful? Give feedback.
-
So apprently you are using |
Beta Was this translation helpful? Give feedback.
-
Hi @emontnemery |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks @altserg What I mean is that Tasmota action should be limited to declare new sensors coming in and the back office should automatically adapt. |
Beta Was this translation helpful? Give feedback.
-
The new discovery is different how it works, we have to discuss with HA. It is NOT just mimic the old way in the new discovery. |
Beta Was this translation helpful? Give feedback.
-
Hi @emontnemery However, for BLE and Zigbee, the number of sensors as well as when they can come up or down is drastically different. So I believe this logic has to be reconsidered for BLE and Zigbee sensors.
|
Beta Was this translation helpful? Give feedback.
-
You can limit the # of reported sensors using m32option5
…Sent from my iPhone
On 29 Mar 2022, at 21:24, Barbudor ***@***.***> wrote:
The main difference is that physically attached sensors are always limited in numbers while when acting as a gateway, they can be counted by tenth.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Indeed if you have couple of tasmota devices with bluetooth enabled, one sensor can pop up on different devices multiple times
I use mi32option5 to avoid this
…Sent from my iPhone
On 29 Mar 2022, at 22:28, sfromis ***@***.***> wrote:
I can only see much of a point in limiting the number in case of only wanting each sensor on one of multiple BLE gateways...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Indeed @altserg when you need to have multiple ESP32 to cover a large site, that's fine. |
Beta Was this translation helpful? Give feedback.
-
Setoption 19 1 does not enable legacy hass discovery anymore. So it does not work. I would appreciate if you share an example of your setup
…Sent from my iPhone
On 1 Apr 2022, at 13:05, sfromis ***@***.***> wrote:
Well, if you want SetOption19 1 for BLE, just do it. No code change needed. Of course, that does not answer the issue as posted by you. Any solution for native discovery to integrate dynamically appearing sensors should IMO apply as much to Zigbee.
As native discovery is not designed to only work with HA, reverting to old style does not get around the weak spot of fuller discovery than what can work if the backend simply reacts when it sees a new sensor appearing, and is able to deal with this.
What I do in my setup is not to assume the device to provide details of how it is to appear in dashboard/whatever, and then I have easily updateable metadata if I want to additional structure data. This works without additional discovery data, as the only useful thing for dynamically appearing sensors is the alias, which already appears in the regular payloads. To me, this makes more sense that sticking to a concept of a device having to tell a lot of details about other devices (sensors in this case). Of course, I'm not going to push HA to work better for such devices, as I'm not using it anyway.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Hey, Any chance to get this prioritized? Would like autodiscovery for BLE in Home Assistant via ESP32 Tasmota devices |
Beta Was this translation helpful? Give feedback.
-
Any progress on this one? Is the option still to manually input sensors in HA? or using Blerry ? Following. Thank you |
Beta Was this translation helpful? Give feedback.
-
Any progress?) |
Beta Was this translation helpful? Give feedback.
-
PROBLEM DESCRIPTION
BLE sensors are not reported in Tasmota native discovery. They are not visible in HASS GUI. The behavior is the same regardless of MI32Option6 setting.
The issue was found while migrating from Domotiz/HASS MQTT discovery plugin to HASS/Tasmota integration
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
Add any (Xiaomi) BLE temperature/humidity sensor to Tasmota. The sensor data are correctly reported using both "mi32option6 0" and "mi32option6 1". However, the sensor is not reported via Tasmota native discovery to homeassistant. Legacy Home Assistant discovery via MQTT integration works fine.
There is a thread about it in hass community with possible workaround: https://community.home-assistant.io/t/tasmota-xaomi-ble-temp-sensors/311314/4
However, I think that the behavior of legacy HASS discovery and new Tasmota native discovery should be the same
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
Native Tasmota discovery should report BLE sensors, and they should be visible in HASS. The same as legacy Home Assistant discovery
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
Beta Was this translation helpful? Give feedback.
All reactions