home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.66k stars 30.79k forks source link

Frontier Silicon device needs basic auth header #77331

Closed norp4n closed 2 years ago

norp4n commented 2 years ago

The problem

I have tried to add my Auna to Home Assistant and I think I have narrowed it down to that it requires a basic auth header for authorization. Maybe there are more issues to come but here is where it seems to be stuck right now. I found some info here: https://github.com/tabacha/dabman-api/issues/1#issuecomment-953271881

If i curl my device without basic auth:

curl http://x.x.x.x/device/  
<HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD><BODY><H1>401 Unauthorized</H1>#

and with:

curl -H 'Authorization: Basic c3UzZzRnbzZzazc6amkzOTQ1NHh1L14=' http://x.x.x.x/device/
<?xml version="1.0" encoding="UTF-8"?><result><rt>INVALID_CMD</rt></result>#

I'm not sure if this is in fsapi or in Home Assistant but i'll report it here anyway

What version of Home Assistant Core has the issue?

2022.8.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Frontier Silicon

Link to integration documentation on our website

https://www.home-assistant.io/integrations/frontier_silicon/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

frontier_silicon documentation frontier_silicon source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @wlcrs, mind taking a look at this issue as it has been labeled with an integration (frontier_silicon) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

wlcrs commented 2 years ago

Why are you convinced that this device should be supported by the frontier_silicon integration? It does not seem to use the UNDOK app, which all other devices supported by this integration do?

norp4n commented 2 years ago

Maybe I was a bit quick to submit a bug report, sorry about that, but I believe it's a Frontier Silicon chipset in it,  I would not say I'm convinced though.

It's controlled with AirMusic Control from mediaU, and the documentation page says they are usually controlled by the UNDOK app so I did not see that as a requirement. Maybe I'll try using afsapi separately to see if I can get that to work first.

wlcrs commented 2 years ago

Thank you for that. Without having such a device at my disposal it's otherwise very hard to diagnose/fix/test the library. Debugging yourself will be the easiest way to move things forward.

norp4n commented 2 years ago

After some more digging I found out it's not based on Frontier Silicon but rather M6/ M7 chipset from Magic Systech which others already asked about:

https://community.home-assistant.io/t/is-it-possible-to-integrate-the-m6-m7-platform-from-systech/328904

Sorry about my mistake regarding chipset.

wlcrs commented 2 years ago

👍