aserramonner / MMM-HASS

HomeAssistant module for the MagicMirror
GNU General Public License v3.0
31 stars 11 forks source link

Login #1

Closed planet4 closed 6 years ago

planet4 commented 6 years ago

Thanks for sharing. I am trying this module but wont get any data. I just do not understand how you can fetch the data without any api key or login/password. Is there anything I missed?

Flagun commented 6 years ago

Hi, I had the same problem but I've found the solution. Go to your module location open node_helper.s file

change these lines:

var url = config.host + ':' + config.port + '/api/states/' + devicename;

to:

var url = config.host + ':' + config.port + '/api/states/' + devicename + '?api_password=yourpassword';

and these:

var url = config.host + ':' + config.port + '/api/services/' + domain + '/' + service;

to:

var url = config.host + ':' + config.port + '/api/services/' + domain + '/' + service + '?api_password=yourpassword';

Cheers

PauloPC commented 6 years ago

I have same situation. Did you had updated HA recently? I did. capturar

sytone commented 6 years ago

see my fork until pull #3 is completed