Version: 0.1.0
Domain: gluon_smlight
This custom component for Home Assistant provides the ability to reset antennas by making HTTP requests to specific endpoints.
Controlling SMLIGHT SLZB-06 and SMLIGHT SLZB-06M network coordinators
- Adds two services to Home Assistant for resetting antennas:
antenna_1a_Zigbeeandantenna_1a_ESP32. - Uses basic HTTP authentication to securely access the antenna reset endpoints.
In the __init__.py file, update the IP addresses, user, and password fields according to your system's configuration:
url = "http://<your_ip_address>/api2?action=4&cmd=1" # Update the URL
user = "your_user" # Replace with your username
password = "your_password" # Replace with your passwordAnd:
url = "http://<your_ip_address>/api2?action=4&cmd=3" # Update the URL
user = "your_user" # Replace with your username
password = "your_password" # Replace with your passwordCreate a new directory called gluon_smlight inside the custom_components folder in your Home Assistant installation.
Place the following files inside the gluon_smlight directory:
__init__.py
manifest.json
In your configuration.yaml file, add the following line:
# Antenna reset service
gluon_smlight:Restart your Home Assistant instance for the changes to take effect.
Once the component is set up, you will have access to two new services in Home Assistant:
gluon_smlight.antenna_1a_Zigbee
This service sends a reset request to the Zigbee antenna.
gluon_smlight.antenna_1a_ESP32
This service sends a reset request to the ESP32 antenna.
You can call these services from Home Assistant's interface or integrate them into your automations.