Comments (4)
I'm glad to hear that you've figured it out and got the integration up and running. The MAC address is used to generate a unique device ID which matches that provided via the mDNS discovery process, so that it doesn't get discovered as a new device after you've manually configured it.
This integration still makes use of the original "command API", which is very basic and only provides a way to open/close a door or get the status of all doors; a JSON API was subsequently added in another firmware update, which provides more detail (and a bit more control, such as the ability to do timed "partial open" commands and set the status LED brightness) - including the MAC address (albeit in a slightly odd format). I'll try to find time to shift over to the JSON API - and as part of that process, switch to extracting the MAC address from the status response rather than having to do a lookup (which, as you've found, may fail for various reasons, even if the device's API is reachable).
from tailwind-home-assistant.
I've just released v0.6.0 of the integration, which shifts to the JSON API - and with that, removes the dependency on scapy
and its getmacbyip
. If you update to v0.6.0 (or install it, if you've removed the previous version), you should hopefully now be able to set up (and use) the integration without needing to adjust your HA container's privileges.
from tailwind-home-assistant.
I figured out what was causing this issue, and I wonder if there's something that can be added to prevent it in the future for others. The issue was a permissions error. My HA instance is run under its own user (in this case, the "homeassistant" user). Apparently this user does not have permission to access the getmacbyip function/package. Temporarily running my HA instance as root fixed the problem -- I was able to add my Tailwind device without issue. It's obviously a terrible idea to run your HA server as the root user so once I added my Tailwind device I reverted back to running HA as my regular user, and everything seems fine -- the Tailwind device is still present and appears to work. I will note that changing the user to root and back was not without its own issues; starting my HA instance as the root user changed the owner and access permissions on a bunch of internal HA files, and I needed to find and revert these as well so my server would run properly under my regular user.
It seems like the only purpose of the getmacbyip function is to find the MAC address that's associated with the Tailwind controller during the initial setup, correct? If so, would it be possible to modify the integration such that if it is unable to automatically determine the MAC address based on the user-provided IP address, it then presents the user with the option of defining the MAC address manually?
from tailwind-home-assistant.
I am running into the same issue trying to set up this integration. I am new to home assistant and running it through docker on unraid. I know just enough to get myself in trouble so im not sure how id give this container more privileges but I am mostly commenting to let you know if you made these changes it would help out at least one more person.
from tailwind-home-assistant.
Related Issues (20)
- Getting an Error after HA Tailwind Integration
- IP Address reassignment HOT 10
- Multiple Tailwind devices HOT 7
- Update to 2023.2 breaks tailwind iq3 startup HOT 4
- Replace async_setup_platforms with async_forward_entry_setups
- Integration Broken Following HA 2023.02 Upgrade HOT 1
- HA 2023.2.5 Update: Setup failed for custom integration tailwind_iq3: Requirements for tailwind_iq3 not found HOT 3
- Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble HOT 4
- async_setup_platforms -- deprecated HOT 2
- Enable stop_cover action?
- Garage Door Opening is not working as a trigger HOT 3
- Fresh Install - Integration not ready yet HOT 11
- One Garage Door Stating Incorrect State and Cover Control doesn't work HOT 3
- 0.6 update does not recognize my 3rd door HOT 6
- Deprecated Constants will be removed from HA Core 2025.1
- Fail to call service error HOT 2
- Integration Setup Issues HOT 2
- Tailwind didn't appear and issue while recognizing IP address HOT 1
- Feature request: add support for partial open HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwind-home-assistant.