Is it a problem (read: not advised) to have both the HA API and MQTT options enabled for a device?
Config:
api:
password: !secret home_assistant_api_password
mqtt:
broker: !secret mqtt_broker
discovery: True
I see messages like this in my HA log:
2020-07-29 17:19:54 ERROR (MainThread) [homeassistant.components.binary_sensor] Entity id already exists - ignoring: binary_sensor.rhs_garage_door_status_2. Platform esphome does not generate unique IDs
If it is indeed ok to have both configured, how do I control the entity IDs? I couldn’t find anything on this in the ESPHome docs (as excellent as it is, which makes me think this should rather not be done).
In case you ask why I’d want this: It was purely from a first device I built and I experimented with the two options. I know that the API is considered more efficient, but where I use these devices in HA I tend to use MQTT.