This is an "extension" of the builtin mqtt_statestream
integration.
Besides the functionalities of the hereabove, it also allows to publish and handles an MQTT "discovery" setup.
- FIX: MQTT race condition at startup
- FIX: name when entity is not in entity registry
- FIX: Avoid duplicating entity and device names + icon support (@rohankapoorcom)
- ADD: button entities support (@rohankapoorcom)
- ADD: input_booleans entities support (@rohankapoorcom)
- ADD: devcontainer support (@rohankapoorcom)
unreleased
- FIX: ha.components depreciation
- FIX: Only handle service calls for discoveries we published
- ADD: customize unique prefix
- FIX: color attr when turned off
- FIX: always publish
- FIX: availability
- Fix
async_get_registry
warning
- Add "discovery_topic" to split config and state topics
- Fix availability for lights
- Adapt to 2021.12
- Add device support
- FIX color support
- Add availability support
- Add device_tracker
- Add light transitions
- Initial HACS release
- Manage color temperature
- Fix binary_sensors
- Initial release:
Handles:
- sensors
- switches
- lights (partial)
- MQTT configured
- Launch HACS
- Navigate to the Integrations section
- "+ Explore & Add Repositories" button in the bottom-right
- Search for "MQTT DiscoveryStream"
- Select "Install this repository"
- Restart Home Assistant
The integration is configured via YAML only.
Example:
mqtt_discoverystream:
base_topic: test_HA
publish_attributes: false
publish_timestamps: true
publish_discovery: true
include:
entities:
- sensor.owm_hourly_humidity
- sensor.jellyfin_cloud
- light.wled_esp
exclude:
entities:
- sensor.plug_xiaomi_1_electrical_measurement
This integration can only be configuration via YAML. The base options are the same as the mqtt_statestream one.
key | default | required | description |
---|---|---|---|
base_topic | none | yes | Base topic used to generate the actual topic used to publish. |
discovery_topic | none | no | Topic where the configuration topics will be created. Defaults to base_topic |
publish_attributes | false | no | Publish attributes of the entity as well as the state. |
publish_timestamps | false | no | Publish the last_changed and last_updated timestamps for the entity. |
publish_discovery | false | no | Publish the discovery topic ("config"). |
include / exclude | none | no | Configure which integrations should be included / excluded from publishing. |
- This custom component is based upon the
mqtt_statestream
one from HA Core.