avm_sid.py aktualisiert
This commit is contained in:
10
avm_sid.py
10
avm_sid.py
@@ -119,9 +119,7 @@ def lights_on():
|
|||||||
fritzurl = 'http://192.168.178.1/webservices/homeautoswitch.lua'
|
fritzurl = 'http://192.168.178.1/webservices/homeautoswitch.lua'
|
||||||
ain = ain_light
|
ain = ain_light
|
||||||
|
|
||||||
#payload_get_switch_list = {'switchcmd': 'getdevicelistinfos', 'sid': sid}
|
|
||||||
payload_on = {'ain': ain, 'switchcmd': 'setswitchon', 'sid': sid}
|
payload_on = {'ain': ain, 'switchcmd': 'setswitchon', 'sid': sid}
|
||||||
payload_off = {'ain': ain, 'switchcmd': 'setswitchoff', 'sid': sid}
|
|
||||||
x = requests.get(fritzurl, params=payload_on)
|
x = requests.get(fritzurl, params=payload_on)
|
||||||
|
|
||||||
def lights_off():
|
def lights_off():
|
||||||
@@ -134,8 +132,6 @@ def lights_off():
|
|||||||
fritzurl = 'http://192.168.178.1/webservices/homeautoswitch.lua'
|
fritzurl = 'http://192.168.178.1/webservices/homeautoswitch.lua'
|
||||||
ain = ain_light
|
ain = ain_light
|
||||||
|
|
||||||
#payload_get_switch_list = {'switchcmd': 'getdevicelistinfos', 'sid': sid}
|
|
||||||
payload_on = {'ain': ain, 'switchcmd': 'setswitchon', 'sid': sid}
|
|
||||||
payload_off = {'ain': ain, 'switchcmd': 'setswitchoff', 'sid': sid}
|
payload_off = {'ain': ain, 'switchcmd': 'setswitchoff', 'sid': sid}
|
||||||
x = requests.get(fritzurl, params=payload_off)
|
x = requests.get(fritzurl, params=payload_off)
|
||||||
|
|
||||||
@@ -149,10 +145,8 @@ def coffee_on():
|
|||||||
fritzurl = 'http://192.168.178.1/webservices/homeautoswitch.lua'
|
fritzurl = 'http://192.168.178.1/webservices/homeautoswitch.lua'
|
||||||
ain = ain_coffee
|
ain = ain_coffee
|
||||||
|
|
||||||
#payload_get_switch_list = {'switchcmd': 'getdevicelistinfos', 'sid': sid}
|
|
||||||
payload_on = {'ain': ain, 'switchcmd': 'setswitchon', 'sid': sid}
|
payload_on = {'ain': ain, 'switchcmd': 'setswitchon', 'sid': sid}
|
||||||
payload_off = {'ain': ain, 'switchcmd': 'setswitchoff', 'sid': sid}
|
x = requests.get(fritzurl, params=payload_on)
|
||||||
x = requests.get(fritzurl, params=payload_off)
|
|
||||||
|
|
||||||
def coffee_off():
|
def coffee_off():
|
||||||
url = 'http://192.168.178.1'
|
url = 'http://192.168.178.1'
|
||||||
@@ -164,8 +158,6 @@ def coffee_off():
|
|||||||
fritzurl = 'http://192.168.178.1/webservices/homeautoswitch.lua'
|
fritzurl = 'http://192.168.178.1/webservices/homeautoswitch.lua'
|
||||||
ain = ain_coffee
|
ain = ain_coffee
|
||||||
|
|
||||||
#payload_get_switch_list = {'switchcmd': 'getdevicelistinfos', 'sid': sid}
|
|
||||||
payload_on = {'ain': ain, 'switchcmd': 'setswitchon', 'sid': sid}
|
|
||||||
payload_off = {'ain': ain, 'switchcmd': 'setswitchoff', 'sid': sid}
|
payload_off = {'ain': ain, 'switchcmd': 'setswitchoff', 'sid': sid}
|
||||||
x = requests.get(fritzurl, params=payload_off)
|
x = requests.get(fritzurl, params=payload_off)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user