wonderslug / MMM-HomeAssistantDisplay

A Magic Mirror Module to display information from Home Assistant.
MIT License
87 stars 6 forks source link

Nothing displaying #15

Open smartroad opened 1 year ago

smartroad commented 1 year ago

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 :(

wonderslug commented 1 year ago

Howdy.

I would first check your display template within your Home Assistant instance using the devtools template section.

Open your Home Assistant instance and show your template developer tools.

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?

mercredo commented 2 months ago

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