dasshubham762 / atomberg-integration

Home Assistant integration for Atomberg Fans.
MIT License
20 stars 3 forks source link

Fans are shown as not available #11

Closed gondhijagapathi closed 3 months ago

gondhijagapathi commented 3 months ago

System Health details

System Information

version core-2024.5.5
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 5.15.0-107-generic
arch x86_64
timezone Asia/Calcutta
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4972 Installed Version | 1.34.0 Stage | running Available Repositories | 1393 Downloaded Repositories | 2 HACS Data | ok
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 2 -- | -- resources | 0 views | 0 mode | storage
Recorder oldest_recorder_run | June 4, 2024 at 7:28 PM -- | -- current_recorder_run | June 5, 2024 at 10:27 PM estimated_db_size | 2.55 MiB database_engine | sqlite database_version | 3.44.2

Checklist

Describe the issue

Fans Shown as unavailable after completing adding api keys and refresh token

image

Reproduction steps

  1. followed instructions from readme , thats it
  2. ...

Debug logs

nb jj

Diagnostics dump

No response

gondhijagapathi commented 3 months ago

NVM, i solved the issue , i see we need 5625 port on home assistant system to be open , (I have UFW firewall)

sudo ufw allow 5625

above command solved my issue

vsnthdev commented 3 months ago

I'm also getting the same error, don't know why. Exposed port 5625 from my Home Assistant Docker container to the host machine (which doesn't have a firewall) but sill my fan shows up as "Unavailable".

Any idea what could be causing it @gondhijagapathi and @dasshubham762 🤔

dasshubham762 commented 3 months ago

@vsnthdev Try setting network_mode as host for the HA container.

vsnthdev commented 3 months ago

Thank you so much for building this @dasshubham762 I have added my first ever fan to HA 🙌

I previously had my ports exposed in the following way 👇

ports:
  - 8123:8123
  - "5625:5625"
  - "6666:6666/udp"
  - "6667:6667/udp"

And I replaced "5625:5625" with "5625:5625/udp" and it is working ✅