xiaomi-mqtt icon indicating copy to clipboard operation
xiaomi-mqtt copied to clipboard

Added Rooms section

Open hallard opened this issue 6 years ago • 3 comments

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

hallard avatar Feb 01 '19 12:02 hallard

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.

cflurin avatar Feb 11 '19 11:02 cflurin

@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

hallard avatar Feb 16 '19 11:02 hallard

@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.

cflurin avatar Feb 18 '19 16:02 cflurin