Closed AuZ-ASD closed 3 years ago
try to change lights
to switches
- those maybe recognized as switches.
raff stores are stored in covers
hawedere ;)
hi, yes switches did the trick... the two missing are switches...
python3.9 example_switches.py
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo HAUS gesamt
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo KI Osten
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo KI Süden
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo Schlafz. Süden
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo Schlafz. Westen
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo WZ Fenster Süden
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo WZ Gartentür Westen
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo WZ Terrassentür Süden
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo WZ gesamt
load platform switch with 2 switches
load platform scene with 2 scenes
437 - Heizungsraum Licht available status: ['on/off']
396 - Steckdosen available status: ['on/off']
Turn on device 437 - Heizungsraum Licht
Turn off device 437 - Heizungsraum Licht
only "walter" knows why this two are different from the rest..
with the covers i wasnt this lucky ... tried the same.. as with the lights -> swiches this time with covers but obviously they are not "covers"
python3.9 example_covers.py
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo HAUS gesamt
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo KI Osten
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo KI Süden
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo Schlafz. Süden
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo Schlafz. Westen
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo WZ Fenster Süden
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo WZ Gartentür Westen
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo WZ Terrassentür Süden
Unknown object returned from web server: CH_ShutterBlind_Automation / Rollo WZ gesamt
load platform switch with 2 switches
load platform scene with 2 scenes
Traceback (most recent call last):
File "/opt/home-assistant-vimar-master/examples/example_covers.py", line 81, in <module>
test_device_id = list(covers)[0]
IndexError: list index out of range
do i need to update as you have commit some stuff?
please update to the latest version - I just added this new variant "CH_ShutterBlind_Automation" yesterday
genius!
python3.9 example_covers.py
load platform light with 21 lights
load platform cover with 9 covers
load platform switch with 2 switches
load platform scene with 2 scenes
538 - Haus Gesamt Rollo available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
526 - Ki Osten Rollo available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
532 - Ki Süden Rollo available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
513 - Schlafz. Süden Rollo available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
519 - Schlafz. Westen Rollo available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
501 - Süden Fenster Rollo Wz available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
489 - Westen Gartentür Rollo Wz available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
495 - Süden Terrassentür Rollo Wz available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
507 - Wz Gesamt Rollo available status: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
given device does not support 'on/off' status - available: ['clockwise/counterclockwise', 'stop up/stop down', 'up/down']
will play around with it on the weekend ... dont want to wake all up with running the covers up/down :)
optionals = vimarconnection.get_optionals_param("up/down")
# open
vimarconnection.set_device_status(covers[test_device_id]["status"]["up/down"]["status_id"], '0', optionals)
time.sleep(2)
# stop
vimarconnection.set_device_status(covers[test_device_id]["status"]["stop up/stop down"]["status_id"], '1', optionals)
time.sleep(2)
# close
vimarconnection.set_device_status(covers[test_device_id]["status"]["up/down"]["status_id"], '1', optionals)
good luck and have fun!
Hi,
again thanks for your example CLI it works great! i only have some questions
@1. my light are liste as this:
and in the screenshot: you can see the lights i have.. the names are little bit mixed up but i marked them by numbers... number 1 is the first in the list 2 the 2nd etc. the two missing one are right hand with the red square.
@2. I think the raffstores are somehow already listed within this "Unknown object .... " lines (see above) screeenie of them within the webgui:
Regards from vienna ASD