Closed felipecrs closed 2 years ago
I tried to remove all extensions except tablet but the issue remains. Very weird. If you want to debug on my side, I can show on Discord.
It can't match the logged in user with any user in extensions. Are you sure you're logged in as tablet, and the person entity is correct?
Yes, I'm sure!
This is the code where it defines the logged in user. Could be useful.
${this.config.extensions.map(extension => {
var stateObj = this.hass.states[extension.entity];
var isMe = (this.hass.user.id == this.hass.states[extension.person].attributes.user_id);
if (isMe) { this.user = extension; }
Maybe a refresh? Because it's a new entity.
I tried everything already, lol. Also, I wish I knew how to debug this to check which value is inside of these fields...
Ok now I think I found how to debug. One sec.
Debugging cards is indeed hard. I log the values and rebuild.
user_id for the person Tablet is undefined. But when it iterates as my user, it's set.
Wow, just found the issue:
I think. Checking...
Yes, worked. I don't know how the hell this happened, but whatever... Thank you for the tip on debugging!
Nice, never found that problem. I will add it in the wiki.
Exactly! That's what I don't understand. But my gut feeling is that I had an user called tablet (that's how I logged in) and then a person called tablet, but they were not linked.
I was thinking that too. Same name, different ID.
When I connect using my own account, everything works fine, but when I try in my tablet with my "Tablet" account/person, the HA-SIP fails as below: