diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 09:43:59 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 09:43:59 +0000 |
| commit | 285b688436d6e37c788d009eeb3d7dde30889880 (patch) | |
| tree | 5076b2656e70f31b85221dfd36a91d1a92b7b30e /python-pyshelly.spec | |
| parent | a648d3ae33e53139fe752664bdb973ae970e1440 (diff) | |
automatic import of python-pyshelly
Diffstat (limited to 'python-pyshelly.spec')
| -rw-r--r-- | python-pyshelly.spec | 401 |
1 files changed, 401 insertions, 0 deletions
diff --git a/python-pyshelly.spec b/python-pyshelly.spec new file mode 100644 index 0000000..643715d --- /dev/null +++ b/python-pyshelly.spec @@ -0,0 +1,401 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyShelly +Version: 1.0.2 +Release: 1 +Summary: Library for Shelly smart home devices +License: MIT +URL: https://github.com/StyraHem/pyShelly +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/34/da/f69a7fee2ba04ac7b6770f7a9ba979d7767a895d0ad536333f68a7532c64/pyShelly-1.0.2.tar.gz +BuildArch: noarch + +Requires: python3-zeroconf +Requires: python3-websocket-client + +%description +[](https://www.styrahem.se) +[](https://www.buymeacoffee.com/styrahem) + + + + +# pyShelly + +Library for Shelly smart home devices. Using CoAP for auto discovery and status updates. + +This library was created for Shelly Plugins for Home Assistant and Telldus Tellstick Net/zNet v2. + +## Features + +- Discover devices +- Monitor status +- Monitor switch status +- Control (turn on/off etc) +- MQTT Server (buildin MQTT server taht devices can connect to directly) +- MQTT Client (using a MQTT broker) +- Websocket +- Run only locally +- Support user name and password +- Coexist with Shelly Cloud and Shelly app +- Support static and dynamic ip address +- mDns and MQTT discovery +- RPC (gen 2 devices) +- Cloud support (Get names of devices etc) + +## Devices supported + +### Gen 1 devices +- Shelly 1 +- Shelly 1 PM (bug in firmware) +- Shelly 1L +- Shelly Addon for 1/1PM, temp and humidity +- Shelly 2 (relay or roller mode) +- Shelly 4 Pro +- Shelly Plug +- Shelly Plug S +- Shelly BULB +- Shelly RGBWW +- Shelly RGBW2 +- Shelly H&T +- Shelly EM +- Shelly 2.5 (relay or roller mode) +- Shelly 2LED +- Shelly Flood +- Shelly Door/Window +- Shelly Door/Window 2 +- Shelly Dimmer +- Shelly Dimmer 2 +- Shelly EM +- Shelly 3EM +- Shelly DUO +- Shelly Vintage +- Shelly i3 +- Shelly Button 1 +- Shelly Gas +- Shelly Air (not tested) + +### Plus devices +- Shelly Plus 1 +- Shelly Plus 1PM +- Shelly Plus 2 +- Shelly Plus 2PM +- Shelly Plus i3 + +### Pro devices +- Shelly Pro 1 +- Shelly Pro 1PM +- Shelly Pro 2 +- Shelly Pro 2PM +- Shelly Pro 4PM + +### Comming soon +- Shelly TRV +- Shelly Plus H&T + +## Usage + +```python +from pyShelly import pyShelly + +def device_added(dev,code): + print (dev," ",code) + +shelly = pyShelly() +print("version:",shelly.version()) + +shelly.cb_device_added.append(device_added) +shelly.start() +shelly.discover() + +while True: + pass +``` + +## Feedback + +Please give us feedback on info@styrahem.se or Facebook groups: [Shelly grupp (Swedish)](https://www.facebook.com/groups/ShellySweden) or [Shelly support group (English)](https://www.facebook.com/groups/ShellyIoTCommunitySupport/) + +## Founder + +This plugin is created by the StyraHem.se, the Swedish distributor of Shelly. In Sweden you can buy Shellies from [StyraHem.se](https://www.styrahem.se/c/126/shelly) or any of the retailers like NetOnNet, Kjell&Company etc. + +[](https://www.buymeacoffee.com/styrahem) + + + + +%package -n python3-pyShelly +Summary: Library for Shelly smart home devices +Provides: python-pyShelly +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyShelly +[](https://www.styrahem.se) +[](https://www.buymeacoffee.com/styrahem) + + + + +# pyShelly + +Library for Shelly smart home devices. Using CoAP for auto discovery and status updates. + +This library was created for Shelly Plugins for Home Assistant and Telldus Tellstick Net/zNet v2. + +## Features + +- Discover devices +- Monitor status +- Monitor switch status +- Control (turn on/off etc) +- MQTT Server (buildin MQTT server taht devices can connect to directly) +- MQTT Client (using a MQTT broker) +- Websocket +- Run only locally +- Support user name and password +- Coexist with Shelly Cloud and Shelly app +- Support static and dynamic ip address +- mDns and MQTT discovery +- RPC (gen 2 devices) +- Cloud support (Get names of devices etc) + +## Devices supported + +### Gen 1 devices +- Shelly 1 +- Shelly 1 PM (bug in firmware) +- Shelly 1L +- Shelly Addon for 1/1PM, temp and humidity +- Shelly 2 (relay or roller mode) +- Shelly 4 Pro +- Shelly Plug +- Shelly Plug S +- Shelly BULB +- Shelly RGBWW +- Shelly RGBW2 +- Shelly H&T +- Shelly EM +- Shelly 2.5 (relay or roller mode) +- Shelly 2LED +- Shelly Flood +- Shelly Door/Window +- Shelly Door/Window 2 +- Shelly Dimmer +- Shelly Dimmer 2 +- Shelly EM +- Shelly 3EM +- Shelly DUO +- Shelly Vintage +- Shelly i3 +- Shelly Button 1 +- Shelly Gas +- Shelly Air (not tested) + +### Plus devices +- Shelly Plus 1 +- Shelly Plus 1PM +- Shelly Plus 2 +- Shelly Plus 2PM +- Shelly Plus i3 + +### Pro devices +- Shelly Pro 1 +- Shelly Pro 1PM +- Shelly Pro 2 +- Shelly Pro 2PM +- Shelly Pro 4PM + +### Comming soon +- Shelly TRV +- Shelly Plus H&T + +## Usage + +```python +from pyShelly import pyShelly + +def device_added(dev,code): + print (dev," ",code) + +shelly = pyShelly() +print("version:",shelly.version()) + +shelly.cb_device_added.append(device_added) +shelly.start() +shelly.discover() + +while True: + pass +``` + +## Feedback + +Please give us feedback on info@styrahem.se or Facebook groups: [Shelly grupp (Swedish)](https://www.facebook.com/groups/ShellySweden) or [Shelly support group (English)](https://www.facebook.com/groups/ShellyIoTCommunitySupport/) + +## Founder + +This plugin is created by the StyraHem.se, the Swedish distributor of Shelly. In Sweden you can buy Shellies from [StyraHem.se](https://www.styrahem.se/c/126/shelly) or any of the retailers like NetOnNet, Kjell&Company etc. + +[](https://www.buymeacoffee.com/styrahem) + + + + +%package help +Summary: Development documents and examples for pyShelly +Provides: python3-pyShelly-doc +%description help +[](https://www.styrahem.se) +[](https://www.buymeacoffee.com/styrahem) + + + + +# pyShelly + +Library for Shelly smart home devices. Using CoAP for auto discovery and status updates. + +This library was created for Shelly Plugins for Home Assistant and Telldus Tellstick Net/zNet v2. + +## Features + +- Discover devices +- Monitor status +- Monitor switch status +- Control (turn on/off etc) +- MQTT Server (buildin MQTT server taht devices can connect to directly) +- MQTT Client (using a MQTT broker) +- Websocket +- Run only locally +- Support user name and password +- Coexist with Shelly Cloud and Shelly app +- Support static and dynamic ip address +- mDns and MQTT discovery +- RPC (gen 2 devices) +- Cloud support (Get names of devices etc) + +## Devices supported + +### Gen 1 devices +- Shelly 1 +- Shelly 1 PM (bug in firmware) +- Shelly 1L +- Shelly Addon for 1/1PM, temp and humidity +- Shelly 2 (relay or roller mode) +- Shelly 4 Pro +- Shelly Plug +- Shelly Plug S +- Shelly BULB +- Shelly RGBWW +- Shelly RGBW2 +- Shelly H&T +- Shelly EM +- Shelly 2.5 (relay or roller mode) +- Shelly 2LED +- Shelly Flood +- Shelly Door/Window +- Shelly Door/Window 2 +- Shelly Dimmer +- Shelly Dimmer 2 +- Shelly EM +- Shelly 3EM +- Shelly DUO +- Shelly Vintage +- Shelly i3 +- Shelly Button 1 +- Shelly Gas +- Shelly Air (not tested) + +### Plus devices +- Shelly Plus 1 +- Shelly Plus 1PM +- Shelly Plus 2 +- Shelly Plus 2PM +- Shelly Plus i3 + +### Pro devices +- Shelly Pro 1 +- Shelly Pro 1PM +- Shelly Pro 2 +- Shelly Pro 2PM +- Shelly Pro 4PM + +### Comming soon +- Shelly TRV +- Shelly Plus H&T + +## Usage + +```python +from pyShelly import pyShelly + +def device_added(dev,code): + print (dev," ",code) + +shelly = pyShelly() +print("version:",shelly.version()) + +shelly.cb_device_added.append(device_added) +shelly.start() +shelly.discover() + +while True: + pass +``` + +## Feedback + +Please give us feedback on info@styrahem.se or Facebook groups: [Shelly grupp (Swedish)](https://www.facebook.com/groups/ShellySweden) or [Shelly support group (English)](https://www.facebook.com/groups/ShellyIoTCommunitySupport/) + +## Founder + +This plugin is created by the StyraHem.se, the Swedish distributor of Shelly. In Sweden you can buy Shellies from [StyraHem.se](https://www.styrahem.se/c/126/shelly) or any of the retailers like NetOnNet, Kjell&Company etc. + +[](https://www.buymeacoffee.com/styrahem) + + + + +%prep +%autosetup -n pyShelly-1.0.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pyShelly -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.2-1 +- Package Spec generated |
