Skip to content

Commit

Permalink
Add Smoke
Browse files Browse the repository at this point in the history
  • Loading branch information
hakana committed Dec 14, 2023
2 parents 98f23d7 + 45c1338 commit 767be59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This library was created for Shelly Plugins for Home Assistant and Telldus Tells
- Monitor status
- Monitor switch status
- Control (turn on/off etc)
- MQTT Server (buildin MQTT server taht devices can connect to directly)
- MQTT Server (buildin MQTT server that devices can connect to directly)
- MQTT Client (using a MQTT broker)
- Websocket
- Run only locally
Expand Down Expand Up @@ -61,10 +61,12 @@ This library was created for Shelly Plugins for Home Assistant and Telldus Tells

### Plus devices
- Shelly Plus 1
- Shelly Plus 1 Mini
- Shelly Plus 1PM
- Shelly Plus 2
- Shelly Plus 2PM
- Shelly Plus i3
- Shelly Plus Plug S

### Pro devices
- Shelly Pro 1
Expand Down
5 changes: 5 additions & 0 deletions pyShelly/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,11 @@ def setup_devices(self):
self.rpc = True
self._add_device(Relay(self, 0))
self._add_device(Switch(self, 0))
#Shelly Plus 1 Mini
elif self.type == 'ShellyPlus1Mini':
self.rpc = True
self._add_device(Switch(self,0))
self._add_device(Relay(self, 0))
#Shelly Plus 1PM
elif self.type == 'ShellyPlus1PM':
self.rpc = True
Expand Down
2 changes: 2 additions & 0 deletions pyShelly/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@
'ShellyPlus2PM': {'name':"Shelly Plus 2PM", 'mqtt':'shellyplus2pm'},
'ShellyPlusPlugS': {'name':"Shelly Plus Plug S", 'mqtt':'shellyplusplugs'},
'ShellyPlusSmoke': {'name':"Shelly Plus Smoke", 'mqtt':'shellyplussmoke', 'battery':True},
'ShellyPlus1Mini': {'name': "Shelly Plus 1 Mini", 'mqtt': 'shelly1mini'},
'ShellyPlus1PMMini': {'name':"Shelly Plus 1PM Mini", 'mqtt':'shelly1pmmini'},
'ShellyPro1': {'name':"Shelly Pro 1", 'mqtt':'shellypro1'},
'ShellyPro1PM': {'name':"Shelly Pro 1PM", 'mqtt':'shellypro1pm'},
'ShellyPro2': {'name':"Shelly Pro 2", 'mqtt':'shellypro2'},
Expand Down

0 comments on commit 767be59

Please sign in to comment.