Skip to content

Support Tasmota integration (default) discovery protocol setOption19 0 #36

@DominikPalo

Description

@DominikPalo

Is your feature request related to a problem? Please describe:

The new HA Tasmota integration https://www.home-assistant.io/integrations/tasmota/ (which is now a preferred way to integrate Tasmota devices with HA) requires a "Tasmota integration (default)" HA discovery protocol to be set on all devices (see https://www.home-assistant.io/integrations/tasmota/#requirements). Therefore I had to reconfigure all my devices to use it (by setting setOption19 0).

But the homebridge-tasmota plugin supports only the "MQTT discovery" protocol ("Please ensure that your Tasmota device has HASS Auto Discovey enabled ( setOption19 1 )").

Due to these contradictory requirements, I can't use both projects/integrations at the same time. So, it would be great to support also the default discovery protocol (not sure how that mode works over MQTT, but the HA Tasmota integration I've mentioned was able to automatically discover all my Tasmota devices, so it is technically possible).

UPDATE:

I've just checked the Tasmota documentation and it seems that Tasmota setOption19 0 now behaves differently compared to the older versions of Tasmota - I found an older revision of the Tasmota documentation, where the command is explained as:

SetOption19 | Home Assistant automatic discovery.
0 = disabled (default)
1 = enabled and also sets SetOption59 1
If you enable and then disable SetOption19, doing so does not set SetOption59= 0 and does not revert to default %prefix%/%topic%/ FullTopic

But it is explained differently in newer versions:

SetOption19 | Set Home Assistant discovery protocol.
0 = use Tasmota integration (default)
1 = use MQTT discovery

See: tasmota/docs@ec11f0f#diff-13483592b824255998c18c26ba13d15aaa8cf9aac19d0135e07000204a0cbaab

So, it is no longer about enabling/disabling the auto-discover functionality, it is now used to choose a discovery protocol... maybe @arendst or @blakadder could explain more

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions