tkoeberl / MMM-homeassistant-sensors

shows homeassistant sensors on Magic Mirror
MIT License
10 stars 46 forks source link

authentication broken after Hassio update #5

Open dasam opened 5 years ago

dasam commented 5 years ago

After Hassio introduced local accounts, i seem to not be able to get the values from Hassio.

Hassio recognizes this as a IP adress that tries to log in but is denied.

ivanovd commented 5 years ago

Same here

Kugelfang666 commented 5 years ago

I also encounter this problem. Especially with moving from HASSIO 0.82 to 0.83. apparently the legacy API password user lost the rights to read the values resulting in an error. It would be great if this module gets updated to work with the new authentication mechanism

ivanovd commented 5 years ago

Has anyone sorted that out?

ivanovd commented 5 years ago

This fork: https://github.com/leinich/MMM-homeassistant-sensors Should have fixed the issue, however it is not working for me. Can somebody else try it?

Kiina commented 5 years ago

This fork: https://github.com/leinich/MMM-homeassistant-sensors Should have fixed the issue, however it is not working for me. Can somebody else try it?

The fork seems to work for me. Just make sure you have the config right as it uses a different style and https: false config seems required for some reason.

scuppasteve commented 5 years ago

So i have a couple questions, i switched to this fork because it seems more up to date, but, i cant get either to work. I have a couple questions,

  1. Will it work with https: true
  2. Will it work without a token, but with apipassword?

Here is my config,

                {
                        module: 'MMM-homeassistant-sensors',
                        position: 'top_left',
                        config: {
                                host: "IP_Address",
                                port: "8123",
                                https: true,
                                title: "Travel Times",
                                apipassword: "API_PW",
                                debuglogging: true,
                                values: [{
                                                sensor: "sensor.steve_to_home"
                                        }, {
                                                sensor: "sensor.gina_to_home"
                                        }, {
                                                sensor: "sensor.boy_scouts"
                                        }, {
                                                sensor: "sensor.guitar_lessons"
                                        }, {
                                                sensor: "sensor.gymnastics"
                                        }, {
                                                sensor: "sensor.martial_arts"
                                        }
                                ]

                        }
                }