Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmasse/homebridge-mqtt-json
This Homebridge Accessory is realtime updated via a JSON name–value pair payload published via MQTT
https://github.com/gmasse/homebridge-mqtt-json
homebridge json mqtt
Last synced: 20 days ago
JSON representation
This Homebridge Accessory is realtime updated via a JSON name–value pair payload published via MQTT
- Host: GitHub
- URL: https://github.com/gmasse/homebridge-mqtt-json
- Owner: gmasse
- License: gpl-3.0
- Created: 2020-03-08T09:21:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-21T19:41:48.000Z (almost 5 years ago)
- Last Synced: 2024-11-28T13:11:47.937Z (3 months ago)
- Topics: homebridge, json, mqtt
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# homebridge-mqtt-json
This Homebridge Accessory is realtime updated via a JSON name–value pair payload published via MQTT.
Configuration with Homebridge Config UI X (recommended).
Or manually:
```
"accessories": [
{
"accessory": "mqtt-json"
"name": "MQTT Sensor",
"url": "mqtt://mqtt.domain.com",
"topic": "mytopic/data",
"property": "json_param",
}
],
```Then send a MQTT message, exemple:
```
mosquitto_pub -h mqtt.domain.com -t mytopic/data \
-m '{ "json_param": 1234.56, "comment":"other values are ignored" }'
```## Credit
Deeply inspired from [homebridge-mqtt-temperature](https://github.com/mcchots/homebridge-mqtt-temperature).Original code is licensed under MIT license. Copyright (c) 2016 Mohammed Chotia.
Current code is licensed under GPL 3.0. Copyright (c) 2020 Germain Masse.