Skip to content

Commit

Permalink
0.2.3
Browse files Browse the repository at this point in the history
Fix for new RGB Model 442
(Still can't test mode changes however)
  • Loading branch information
ghawken committed Jun 26, 2020
1 parent 53abbad commit c5f748b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LEDeffects.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>0.2.2</string>
<string>0.2.3</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
29 changes: 28 additions & 1 deletion LEDeffects.indigoPlugin/Contents/Server Plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def setLEDeffect(self,pluginAction):
if command=="Default":
self.logger.debug(u'Default Set on device:'+unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId],paramIndex=72,paramSize=1,paramValue=1)
elif dev.model == "RGBW Controller (FGRGBWM442)": # Double check!
elif dev.model == "RGBW Controller (FGRGBW442)": # Double check!
if command == "Rainbow":
self.logger.debug(u'Rainbow Set on device:' + unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId], paramIndex=157, paramSize=1, paramValue=8)
Expand All @@ -390,6 +390,25 @@ def setLEDeffect(self,pluginAction):
self.logger.debug(u'Default Set on device:' + unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId], paramIndex=157, paramSize=1, paramValue=0)

elif dev.model == "RGBW Controller (FGRGBWM442)": # Double check!
if command == "Rainbow":
self.logger.debug(u'Rainbow Set on device:' + unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId], paramIndex=157, paramSize=1, paramValue=8)
if command == "Fireplace":
self.logger.debug(u'FirePlace Set on device:' + unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId], paramIndex=157, paramSize=1, paramValue=6)
if command == "Storm":
self.logger.debug(u'Storm Set on device:' + unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId], paramIndex=157, paramSize=1, paramValue=7)
if command == "Aurora":
self.logger.debug(u'Aurora Set on device:' + unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId], paramIndex=157, paramSize=1, paramValue=9)
if command == "LPD":
self.logger.debug(u'LPD Set on device:' + unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId], paramIndex=157, paramSize=1, paramValue=10)
if command == "Default":
self.logger.debug(u'Default Set on device:' + unicode(dev.name))
indigo.zwave.sendConfigParm(device=indigo.devices[devId], paramIndex=157, paramSize=1, paramValue=0)

elif dev.model == 'RGBW LED Strip (ZW121)':
if command=="Rainbow":
Expand Down Expand Up @@ -537,6 +556,14 @@ def uiEffects(self, filter, valuesDict, typeId, deviceId):
theList.append(("Aurora","Aurora"))
theList.append(("LPD","LPD"))
theList.append(("Default","Default"))
elif 'RGBW Controller (FGRGBW442)' in device.model: ## new 442 version reported by Indigo of 442 Fibaro RGB
self.logger.debug(unicode(device.model))
theList.append(("Rainbow","Rainbow"))
theList.append(("Fireplace","Fireplace"))
theList.append(("Storm","Storm"))
theList.append(("Aurora","Aurora"))
theList.append(("LPD","LPD"))
theList.append(("Default","Default"))
elif 'RGBW Controller (FGRGBWM442)' in device.model: ## new 442 version reported by Indigo of 442 Fibaro RGB
self.logger.debug(unicode(device.model))
theList.append(("Rainbow","Rainbow"))
Expand Down

0 comments on commit c5f748b

Please sign in to comment.