Skip to content

Commit

Permalink
Merge pull request #18 from Smanar/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
Smanar authored Apr 14, 2019
2 parents 888da0a + b648a6d commit f7be622
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions API_KEY.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
print ("Webscoket Port : " + str(j['websocketport']) )
print ("IP adress: " + j['ipaddress'] )
print ("Firmware version : " + j['fwversion'] )
print ("Websocketnotifyall : " + str(j['websocketnotifyall']) )


else:
Expand Down
8 changes: 7 additions & 1 deletion fonctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,16 @@ def ReturnUpdateValue(command,val,model = None):
kwarg['nValue'] = 0
kwarg['sValue'] = str(val) + ';' + str(Bar_forecast)

# 0=Normal, 1=Comfortable, 2=Dry, 3=Wet
if command == 'humidity':
val = int( int(val) / 100)
kwarg['nValue'] = val
kwarg['sValue'] = '0'
if val <= 40:
kwarg['sValue'] = '2'
elif val<=70:
kwarg['sValue'] = '1'
else:
kwarg['sValue'] = '3'

if command == 'lightlevel':
kwarg['nValue'] = 0
Expand Down
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Author: Smanar
#
"""
<plugin key="deCONZ" name="deCONZ plugin" author="Smanar" version="1.0.6" wikilink="https://github.com/Smanar/Domoticz-deCONZ" externallink="https://www.dresden-elektronik.de/funktechnik/products/software/pc-software/deconz/?L=1">
<plugin key="deCONZ" name="deCONZ plugin" author="Smanar" version="1.0.7" wikilink="https://github.com/Smanar/Domoticz-deCONZ" externallink="https://www.dresden-elektronik.de/funktechnik/products/software/pc-software/deconz/?L=1">
<description>
<br/><br/>
<h2>deCONZ Bridge</h2><br/>
Expand Down

0 comments on commit f7be622

Please sign in to comment.