Snille / MMM-homeassistant-sensors

Shows home assistant sensors on the Magic Mirror.
MIT License
63 stars 15 forks source link

nothing pulled into module #16

Open crackers8199 opened 11 months ago

crackers8199 commented 11 months ago

i have this installed and set up, but nothing is showing up in the module...everything is configured right, but it's just empty. any ideas? the module itself shows on the screen, but it's empty.

just using the basic configuration...

{
    module: 'MMM-homeassistant-sensors',
    position: 'top_left',
    config: {
        host: "my.ip",
        port: "8123",
        https: false,
        token: "my.token",
        values: [
            {
                sensor: "sensor.temp",
            },
        ]
    }
},
magicvodi commented 10 months ago

I seem to have the same issue.

The Javascript Console in the Browser shows following message: MMM-homeassistant-sensors - Error! No data returned! MMM-homeassistant-sensors.js:313:12

When I enable debugLogging, I get the following entries:

[09.11.2023 16:11.08.054] [ERROR] MMM-homeassistant-sensors - buildUrl: http://192.168.1.75:8123/api/states
[09.11.2023 16:11.08.054] [ERROR] MMM-homeassistant-sensors: Adding token REDACTED
[09.11.2023 16:11.08.076] [ERROR] MMM-homeassistant-sensors ERROR: null
[09.11.2023 16:11.08.077] [ERROR] MMM-homeassistant-sensors statusCode: 200
[09.11.2023 16:11.08.084] [ERROR] MMM-homeassistant-sensors Body: [  
    [...] The full JSON Body 

I'm using the magicmirror serveronly docker and Firefox & Google Chrome.