Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zibous/ha-mqtt-discovery
A library that provides tools to simplify MQTT discovery implementation for Home Assistant to your device.
https://github.com/zibous/ha-mqtt-discovery
discovery-service homeassistant mqtt
Last synced: 19 days ago
JSON representation
A library that provides tools to simplify MQTT discovery implementation for Home Assistant to your device.
- Host: GitHub
- URL: https://github.com/zibous/ha-mqtt-discovery
- Owner: zibous
- License: mit
- Created: 2022-04-05T10:07:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T15:15:36.000Z (almost 3 years ago)
- Last Synced: 2024-11-07T21:45:50.447Z (2 months ago)
- Topics: discovery-service, homeassistant, mqtt
- Language: Python
- Homepage:
- Size: 73.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ha-mqtt-discovery
A library that provides tools to simplify MQTT discovery implementation for Home Assistant to your device.![ha-mqtt-discovery](doc/mqtt_explorer_data.png)
## Generate MQTT entities in Home Assistant
1. Create `devices/ha/DEVICENAME/discovery.yaml`
2. Optional add additional discovery items schema to `devices/ha/DEVICENAME/schemalist.yaml`
3. Add device and sourcfolder to `config.py`
4. Run `python3 app.py````python
#!/usr/bin/python3
# -*- coding":" utf-8 -*-from lib import logger
from conf import *
from lib.ha_discoveryitems import *log = logger.Log(__name__, LOG_LEVEL)
if __name__ == "__main__":
"""simple testcase to create and publish ha mqtt discovery items"""
for device in DEVICES:
print(device["device"])
hadis = haDiscoveryItems(devicename=device["device"], folder=device["source"])
n = hadis.publish()
log.info("HA Discovery {} Items: {}".format(device["device"], n))
```
## Info
>>
https://github.com/plapointe6/HAMqttDevice
https://github.com/shaonianzhentan/node-red-contrib-ha-mqtt
https://flows.nodered.org/node/node-red-contrib-ha-mqtt
https://webworxshop.com/home-assistant-mqtt-discovery-sensors-in-node-red/
https://roelofjanelsinga.com/articles/mqtt-discovery-with-an-arduino/