cflurin / xiaomi-mqtt

A Bridge between the Xiaomi Mi Smart Home Gateway and the Mqtt broker.
Apache License 2.0
50 stars 14 forks source link

Added Rooms section #12

Open hallard opened 5 years ago

hallard commented 5 years ago

Added a rooms section to alias SID with room name in data field

cflurin commented 5 years ago

Hi, This isn't the goal of this project and I would like to keep it as simple as possible.

Xiaomi-mqtt exchanges data between the xiaomi gateway and the mqtt-broker at a low-level, principally based on the device sid (Security Identifier?). The automation and dashboard tasks are implemented at a higher level. Node-RED is the perfect tool to use for this purpose.

hallard commented 5 years ago

@cflurin sure I agree totally, the hint is that my app side is based on ESP32 listening on MQTT so I won't be able to flash the ESP32 board each time I add a sensor to know which room it is (mapping between ID and Name). And I do not want to add another app to convert between id and table to display on RGB Matrix, to I added the basic table lookup here, it's not perfect but it works and avoid me installing a node red listenning to MQTT/Convert/Publish again.

The goal is to display each xiaomi notofication (temp, him, ...) on the last line of the display.

image

cflurin commented 5 years ago

@hallard: I see, in your use case it may make sense. As I said I would like to keep it simple. But you can anyway use your fork and also add more features if you like.