Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
A python package for Shelly Cloud API. Shelly is devoted to the development of innovative IoT solutions and products.
SHELLY: The go-to access control for smart homes.
This Python library provides convenient access to the Shelly cloud API, allowing you to manage your relays, rollers and lights.
Shelly Shop
Request Feature/Suggestion: https://forms.gle/efGD5DuTpWsX96GG7
pip install shelly_control
Shelly supports Python 3+.
import shelly_control
Before making requests, you need to authenticate using your Shelly API key. Initialize the Connect
class with your API key:
from shelly_control import Connect
base_url = "Your Cloud Server Address"
api_key = "Your Authorization cloud key"
sh = Connect(base_url,api_key)
OR
import shelly_control
base_url = "Your Cloud Server Address"
api_key = "Your Authorization cloud key"
sh = shelly_control.Connect(base_url,api_key)
Get Key & Server address from here Shelly Control Cloud Dashboard
# Fetch device status
sh.get_device('device_id')
# Control device
sh.control_device(channel , 'on'/'off' , device_id)
# Bulk Control device
sh.bulk_control_relays('devices')
# Parameters:
# - devices (list of dict): List of devices to control, each device should be a dictionary with keys:
# - "id" (int): ID of the device.
# - "channel" (int): Index of the relay or switch component.
# Control Roller
sh.control_roller_direction(direction , device_id)
# Control Roller
sh.control_roller_position(position , device_id)
# Bulk Control Roller
sh.bulk_control_rollers(device_id)
# Bulk Control Roller
sh.control_light(turn=None , white=None , red=None , green=None , blue=None , gain=None , device_id=None)
FAQs
A python package for Shelly Cloud API. Shelly is devoted to the development of innovative IoT solutions and products.
We found that shelly-control demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.