Chart Update Frequency

Using MQTT I would like to track the temperature of a cabinet where I have my electronics hidden, but the updates seem not to be very periodical. Sometimes the time between updates is several hours and sometimes a minute as configured.

My configuration is as follows.
Thanks!
mqtt:
broker: 192.168.1.21
port: 1883
client_id: home-assistant-1
username: username
password: password
keepalive: 30
protocol: 3.1

logger:
  default: warn
  logs:
     homeassistant.components.mqtt: debug

And in sensors.yaml:

  - platform: mqtt
    state_topic: "home/cabinet/temperature"
    name: "Cabinet temperature"
    qos: 0
    unit_of_measurement: '°C'
    value_template: '{{ value_json.temperature | round(1) }}'

I see in the logs that home-assistant receives these messages a minute apart without any errors (as long as I stared at it anyways).

16-09-10 11:56:41 homeassistant.components.mqtt: received message on home/cabinet/temperature: {"temperature": 26.4375}
16-09-10 11:57:41 homeassistant.components.mqtt: received message on home/cabinet/temperature: {"temperature": 26.4375}
16-09-10 11:58:42 homeassistant.components.mqtt: received message on home/cabinet/temperature: {"temperature": 26.4375}

But the chart is not updated anyways… :frowning:

Would appreciate any help.

hey @martisak,

I have the same built for my electronics (while I have it now stopped due to maintenance :stuck_out_tongue:).

I also had the same issue so i went one step ahead with InfluxDB + Graphana. It looks like this:

just wanted to share with you as a very good alternative :slight_smile:

1 Like

Thanks @davedan, looks good! I would have liked that on the dashboard though…
Last time I looked the instructions for making it work on the Pi was a tad long… Any better now?

If the video on their site is any indication, probably not. He spends the first 30 minutes explaining what time based data is (I’m thinking if you’re watching that video you already know) between clearing his throat and saying ah and um every other second. Yikes. Maybe he can explain it better than they can because @davedan’s graphs look awesome.

You should be able to do this with a Jupyter notebook or Logger, both of which are supported in HASS, but I’m still unable to get either of them setup and working - less an issue with support than my understanding. You might have better luck.

I’m FINALLY virtualizing with Docker … quick, smooth, pain-less …

I think in a RPI3 with Docker should be fairly easy as well …

Let me know if you have problems and we can set up some time together to build it up! :slight_smile: