Replies: 1 comment
-
I have seen that indeed is possible, You got 1 device and 4 entities (and that make sense) in declarations: WiFiClient client; in setup()
and in loop():
1 device and 4 sensor entities get automatically configured in home assistant. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to have multiple sensors on a single mqtt connection, ie publishing a BME680 sensor as 4 different sensors ?
It will be interesting to have 4 devices (with unique_id xxxxxxxx_t xxxxxxxx_p xxxxxxxx_h xxxxxxxx_a for temperature pressure humidity and air quality) but a single mqtt_client in the code.
At the moment hamqtt has to be initialized as (client, device), so a single device for mqtt, but (If I have not misunderstood) that means that I need 4 different connections to the broker.
Am'I wrong ?
Beta Was this translation helpful? Give feedback.
All reactions