MMM-HomeAssistantDisplay
MMM-HomeAssistantDisplay copied to clipboard
Nothing displaying
Hi!
I am trying to use this to display some room temp but I can't get anything to display. My code is:
{
module: 'MMM-HomeAssistantDisplay',
position: 'top_right',
config: {
host: "192.168.0.xxx",
token: "TOKEN",
port: 8123,
title: "Internal Environment",
class: "inEnviro",
sections: [{
triggerEntities: [
"sensor.bme280_temperature",
"sensor.bme280_humidity"
],
displayTemplate: `
{{ states('sensor.bme280_temperature') }}°C
{{ states('sensor.bme280_humidity') }}%
`,
}]
},
},
I obviously have something wrong but not sure what :(
Howdy.
I would first check your display template within your Home Assistant instance using the devtools template section.
Obviously make sure your connection to your home assistant is valid (host, token, and ssl usage).
If looks valid otherwise.
What are the MM logs showing?
@smartroad I had problems connecting to home assistant locally, too. Fiddled around with the config, used combinations of useTLS and ignoreCert. Did not work as expected. When debugging via pm2 logs
, the logs told me, the certificate was wrong, even when using ignoreCert. I then decided to connect to my live environment, which was succesful finally.