#MQTT discovery info: manual is inconsistent

1 messages · Page 1 of 1 (latest)

fallow prairie
#

Hello folks!

I'm trying to write code for my ESP32, in order to have it send MQTT discovery info. I found https://www.home-assistant.io/integrations/device_trigger.mqtt/ in the documentation, but it seems to be inconsistent.

The explanation suggests something like type="button_short_press" and subtype="button_1".
The example JSON shows type="action" and subtype="arrow_left_click".

So should the type be "this is some action" with the specific action in the subtype (it's how I read the example), or should type indicate short/long/double/triple and subtype indicate the exact button (which is how I read the rest of the doc)? Or doesn't it really matter anyway and should I just put in there what makes sense to my device?

Cheers,
Sybren

Home Assistant

Instructions on how to integrate MQTT device triggers within Home Assistant.

fallow prairie
#

@crystal mason Well, I'm not understanding the HASS documentation. Not sure why that would be of any interest to the ESPHome folks. Also I'm not using ESPHome.