Working on some Grafana dashboards. I originally posted https://forums.indigodomo.com/viewtopic.php?f=279&t=24797 over there but not sure it can be done with the InfluxDB.
So my question here: Could the MQTT Shim plugin be extended to support additional state values?
I was looking at the MyQ Garage Door plugin and it has these states:
- Code: Select all
states : States : (dict)
doorStatus : closed (string)
doorStatus.closed : true (bool)
doorStatus.closing : false (bool)
doorStatus.open : false (bool)
doorStatus.opening : false (bool)
doorStatus.stopped : false (bool)
doorStatus.transition : false (bool)
doorStatus.unknown : false (bool)
onOffState : on (on/off bool)
onOffState.ui : locked (string)
the doorStatus.open and doorStatus.closed will always be opposite each other. If the MQTT Shim plugin supported something similar this would really add some flexibility with Grafana queries. Something like sensorStatus.open and sensorStatus.closed. That way instead of querying for onState=False (when my sensor is not in an open state) I could query for sensorStatus.closed=true which when I also query for doorStatus.closed = true for the Garage door I can map the true value to the color I want in Grafana.
Not critical or urgent, just an idea to put on the board.
Thanks