Read the statement by Michael Teeuw here.
Which modules with Home Assistant currently work?
-
@iorifly add debuglogging: true,
to the config.js for the HASS module
it doesn’t handle errors at all… but will report status if that flag is enabled
request(get_options, function(error, response, body) { completed_requests++; if(config.debuglogging) { console.log(error); console.log(body); }
-
added it to my config.js. However nothing happened or signaled … Thanks anyway.
-
@iorifly Will be in the terminal window, or pm2 logs output
-
I managed to solve !!! Connected !!! THANKS !!
-
@iorifly what was it? Can’t keep us guessing!
-
I created another token (in HA). and replace in the module.
-
but I will try to use this module. It seems to be more complete.
https://github.com/leinich/MMM-homeassistant-sensors
I will create another token in the Home assistant (HA) for him.
-
actually this module is also working. That is,
operational modules tested by me:
MMM-HASS
MMM-homeassistant-sensor -
i want to use the modul MMM-HASS
but i get the error in HA “Login attempt or request with invalid authentication from”
i use Home Assistant 0.116.2here is my MM-Config from the Modul:
{ module: "MMM-HASS", position: "top_left", config: { host: "xxx.xxx.xxx.xxx", port: "8123", apipassword: "xxxxxx", hassiotoken: true, token: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", https: false, devices: [ { deviceLabel: "Temp Test", deviceReadings: [ { sensor: "sensor.temp1", icon: "wi wi-thermometer", suffix: "°"}, { sensor: "sensor.temp1 _2", icon: "wi wi-humidity", suffix: "%"}, ] }, ] }
In MM:
Temp Test undefined°undefined%
Log from MM:
[2021-01-09 10:36:47.251] [LOG] { undefined: undefined, label: Temp Test }
[2021-01-09 10:37:47.408] [LOG] Request URL: http://xxx.xxx.xxx.xxx:8123/api/states/sensor. temp1?api_password= xxxxxx
[2021-01-09 10:37:47.408] [LOG] Request URL: http://xxx.xxx.xxx.xxx:8123/api/states/sensor. temp1_2?api_password= xxxxxx
[2021-01-09 10:37:47.524] [LOG] { undefined: undefined, label: Temp Test }What I have to config in HA? Would be really grateful for tips
-
Only for information, in case someone has the same problem.
The module works for me now, with the above configurationI found the following articles: https://github.com/aserramonner/MMM-HASS/pull/13/commits/bd816304ba146ad84bce5cada65cb3416194aca7
I made these changes: In File „node_helper.js“ von MMM-HASS
row 130 changed in:
post_options.headers = { 'Authorization' : 'Bearer ' + config.token };
row 176 changed in:
get_options.headers = { 'Authorization' : 'Bearer ' + config.token };