Ausgangssituation:
- smartVISU 2.5
- smarthome.py 0.9 als Backend
- mehrere Android-Clients mit Firefox (bereits alle Browser beendet zur Sicherheit)
- ABB JA/S 8.230.1M als Raffstore-Aktor
- Raffstore werden sowohl über Taster und Visu als auch Wetterstation (getrennte GAs) gesteuert
Problem:
Ich habe einen Teil meiner Raffstore bereits in die Visu integriert (mit 'device.shutter'). Wenn ich die Raffstore manuell über die Visu hoch- oder runterfahre und dann stoppe, oder sie per "Fensterklick" absolut positionieren will, fahren sie die Position an, um dann stückweise (in Bereich von wenigen %) immer weiter zu fahren.
Ausschnitt aus dem ETS Gruppenmonitor:
- per Klick in Visu auf 60% - Resultat 60% - ok
- per Klick in Visu auf 40% - Resultat 40% - ok
- per Klick in Visu ab, dann Stopp - Resultat 45,5% - ok
- nun fängt die Visu? an, den Raffstore schrittweise! wieder auf 40% zu fahren (ob das jetzt immer die letzte per Absolutwert angefahrene Position ist weiß ich nicht) - gut zu erkennen sind die 5 Sekunden Abstände zwischen Status-Visuvorgabe-Status-Visuvorgabe...
gleicher! Zeitpunkt im smarthome.py Log
Item.conf
Visu-Code
Zuerst dachte ich, evtl. würde die Umrechnung um +-1 Bit zwischen Visu und Aktor oder so differieren und so diese Schritte entstehen. Allerdings scheint evtl. auch die alte Absolutwert-Vorgabe eine Rolle zu spielen.
Weitere Logiken hinsichtlich der Raffstore gibt es nicht. Ein Raffstore der in der Visu noch nicht benutzt - wohl aber in sh.py definiert - wird, verhält sich normal.
Ich kann leider nicht einschätzen, wie die Visu-Scripte auf die Rückmeldung des Aktors wohl reagieren.
Grüße
Robert
- smartVISU 2.5
- smarthome.py 0.9 als Backend
- mehrere Android-Clients mit Firefox (bereits alle Browser beendet zur Sicherheit)
- ABB JA/S 8.230.1M als Raffstore-Aktor
- Raffstore werden sowohl über Taster und Visu als auch Wetterstation (getrennte GAs) gesteuert
Problem:
Ich habe einen Teil meiner Raffstore bereits in die Visu integriert (mit 'device.shutter'). Wenn ich die Raffstore manuell über die Visu hoch- oder runterfahre und dann stoppe, oder sie per "Fensterklick" absolut positionieren will, fahren sie die Position an, um dann stückweise (in Bereich von wenigen %) immer weiter zu fahren.
Ausschnitt aus dem ETS Gruppenmonitor:
- per Klick in Visu auf 60% - Resultat 60% - ok
- per Klick in Visu auf 40% - Resultat 40% - ok
- per Klick in Visu ab, dann Stopp - Resultat 45,5% - ok
- nun fängt die Visu? an, den Raffstore schrittweise! wieder auf 40% zu fahren (ob das jetzt immer die letzte per Absolutwert angefahrene Position ist weiß ich nicht) - gut zu erkennen sind die 5 Sekunden Abstände zwischen Status-Visuvorgabe-Status-Visuvorgabe...
Code:
#,Zeit,Dienst,Flags ,Prio,Quelladresse,Quelle,Zieladresse,Ziel,Rout,Typ,DPT,Info 3,2013-06-19 08:55:45.433,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/203,-,6,Write,1 Byte,$99 | 60 % 9,2013-06-19 08:56:01.162,vom Bus,,Low,1.1.113,"Jalousieaktor, JA/S8.230.1M",4/2/223,Raffstore Elternbad Status Position,5,Write, 5.001 Prozent (0..100%),$99 | 60 % 10,2013-06-19 08:56:11.326,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/203,-,6,Write,1 Byte,$66 | 40 % 15,2013-06-19 08:56:29.272,vom Bus,,Low,1.1.113,"Jalousieaktor, JA/S8.230.1M",4/2/223,Raffstore Elternbad Status Position,5,Write, 5.001 Prozent (0..100%),$66 | 40 % 16,2013-06-19 08:56:52.108,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/201,Raffstore Elternbad Auf-Ab,6,Write, 1.008 Auf/Ab,$01 | Ab 17,2013-06-19 08:56:55.673,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/202,Raffstore Elternbad Lamellenverst. / Stopp,6,Write, 1.007 Schritt,$01 | Erhöhen 19,2013-06-19 08:56:57.703,vom Bus,,Low,1.1.113,"Jalousieaktor, JA/S8.230.1M",4/2/223,Raffstore Elternbad Status Position,5,Write, 5.001 Prozent (0..100%),"$74 | 45,5 %" 20,2013-06-19 08:56:57.753,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/203,-,6,Write,1 Byte,"$72 | 44,7 %" 25,2013-06-19 08:57:02.335,vom Bus,,Low,1.1.113,"Jalousieaktor, JA/S8.230.1M",4/2/223,Raffstore Elternbad Status Position,5,Write, 5.001 Prozent (0..100%),"$72 | 44,7 %" 26,2013-06-19 08:57:02.384,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/203,-,6,Write,1 Byte,"$70 | 43,9 %" 27,2013-06-19 08:57:07.313,vom Bus,,Low,1.1.113,"Jalousieaktor, JA/S8.230.1M",4/2/223,Raffstore Elternbad Status Position,5,Write, 5.001 Prozent (0..100%),"$70 | 43,9 %" 28,2013-06-19 08:57:07.350,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/203,-,6,Write,1 Byte,"$6D | 42,7 %" 29,2013-06-19 08:57:12.345,vom Bus,,Low,1.1.113,"Jalousieaktor, JA/S8.230.1M",4/2/223,Raffstore Elternbad Status Position,5,Write, 5.001 Prozent (0..100%),"$6D | 42,7 %" 30,2013-06-19 08:57:12.394,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/203,-,6,Write,1 Byte,$6B | 42 % 31,2013-06-19 08:57:17.238,vom Bus,,Low,1.1.113,"Jalousieaktor, JA/S8.230.1M",4/2/223,Raffstore Elternbad Status Position,5,Write, 5.001 Prozent (0..100%),$6B | 42 % 32,2013-06-19 08:57:17.281,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/203,-,6,Write,1 Byte,"$68 | 40,8 %" 33,2013-06-19 08:57:22.402,vom Bus,,Low,1.1.113,"Jalousieaktor, JA/S8.230.1M",4/2/223,Raffstore Elternbad Status Position,5,Write, 5.001 Prozent (0..100%),"$68 | 40,8 %" 34,2013-06-19 08:57:22.515,vom Bus,,Low,1.1.0,omnigate / eibd,4/2/203,-,6,Write,1 Byte,$66 | 40 %
Code:
2013-06-19 08:57:14,544 SmartHome.py DEBUG 192.168.178.202:52685 sent '{"cmd":"item","id":"Elternbad.Raffstore.Position","val":60}' -- __init__.py:json_parse:257 2013-06-19 08:57:14,545 SmartHome.py INFO Elternbad.Raffstore.Position = 60 via Visu 192.168.178.202:52685 -- item.py:_update:219 2013-06-19 08:57:14,589 SmartHome.py DEBUG knx: 1.1.0 set 4/2/203 to 99 -- __init__.py:parse_telegram:180 2013-06-19 08:57:17,211 Scheduler DEBUG series next time: 2013-06-19 08:57:27+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:57:27,238 Scheduler DEBUG series next time: 2013-06-19 08:57:37+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:57:30,318 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 60 -- __init__.py:parse_telegram:185 2013-06-19 08:57:37,267 Scheduler DEBUG series next time: 2013-06-19 08:57:47+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:57:40,440 SmartHome.py DEBUG 192.168.178.202:52685 sent '{"cmd":"item","id":"Elternbad.Raffstore.Position","val":40}' -- __init__.py:json_parse:257 2013-06-19 08:57:40,440 SmartHome.py INFO Elternbad.Raffstore.Position = 40 via Visu 192.168.178.202:52685 -- item.py:_update:219 2013-06-19 08:57:40,489 SmartHome.py DEBUG knx: 1.1.0 set 4/2/203 to 66 -- __init__.py:parse_telegram:180 2013-06-19 08:57:47,294 Scheduler DEBUG series next time: 2013-06-19 08:57:57+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:57:57,321 Scheduler DEBUG series next time: 2013-06-19 08:58:07+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:57:58,436 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 40 -- __init__.py:parse_telegram:185 2013-06-19 08:58:07,347 Scheduler DEBUG series next time: 2013-06-19 08:58:17+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:58:17,374 Scheduler DEBUG series next time: 2013-06-19 08:58:27+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:58:21,208 SmartHome.py DEBUG 192.168.178.202:52685 sent '{"cmd":"item","id":"Elternbad.Raffstore.AufAb","val":"1"}' -- __init__.py:json_parse:257 2013-06-19 08:58:21,209 SmartHome.py INFO Elternbad.Raffstore.AufAb = True via Visu 192.168.178.202:52685 -- item.py:_update:219 2013-06-19 08:58:21,267 SmartHome.py DEBUG knx: 1.1.0 set 4/2/201 to 1 -- __init__.py:parse_telegram:180 2013-06-19 08:58:24,792 SmartHome.py DEBUG 192.168.178.202:52685 sent '{"cmd":"item","id":"Elternbad.Raffstore.Stopp","val":"1"}' -- __init__.py:json_parse:257 2013-06-19 08:58:24,793 SmartHome.py INFO Elternbad.Raffstore.Stopp = True via Visu 192.168.178.202:52685 -- item.py:_update:219 2013-06-19 08:58:24,839 SmartHome.py DEBUG knx: 1.1.0 set 4/2/202 to 1 -- __init__.py:parse_telegram:180 2013-06-19 08:58:26,869 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 45 -- __init__.py:parse_telegram:185 2013-06-19 08:58:26,869 SmartHome.py INFO Elternbad.Raffstore.Position = 45 via KNX 1.1.113 -- item.py:_update:219 2013-06-19 08:58:26,919 SmartHome.py DEBUG knx: 1.1.0 set 4/2/203 to 72 -- __init__.py:parse_telegram:180 2013-06-19 08:58:27,401 Scheduler DEBUG series next time: 2013-06-19 08:58:37+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:58:31,500 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 44 -- __init__.py:parse_telegram:185 2013-06-19 08:58:31,501 SmartHome.py INFO Elternbad.Raffstore.Position = 44 via KNX 1.1.113 -- item.py:_update:219 2013-06-19 08:58:31,549 SmartHome.py DEBUG knx: 1.1.0 set 4/2/203 to 70 -- __init__.py:parse_telegram:180 2013-06-19 08:58:36,367 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 43 -- __init__.py:parse_telegram:185 2013-06-19 08:58:36,367 SmartHome.py INFO Elternbad.Raffstore.Position = 43 via KNX 1.1.113 -- item.py:_update:219 2013-06-19 08:58:36,414 SmartHome.py DEBUG knx: 1.1.0 set 4/2/203 to 6d -- __init__.py:parse_telegram:180 2013-06-19 08:58:37,230 Scheduler DEBUG series next time: 2013-06-19 08:58:47+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:58:41,511 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 42 -- __init__.py:parse_telegram:185 2013-06-19 08:58:41,511 SmartHome.py INFO Elternbad.Raffstore.Position = 42 via KNX 1.1.113 -- item.py:_update:219 2013-06-19 08:58:41,558 SmartHome.py DEBUG knx: 1.1.0 set 4/2/203 to 6b -- __init__.py:parse_telegram:180 2013-06-19 08:58:46,394 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 41 -- __init__.py:parse_telegram:185 2013-06-19 08:58:46,395 SmartHome.py INFO Elternbad.Raffstore.Position = 41 via KNX 1.1.113 -- item.py:_update:219 2013-06-19 08:58:46,439 SmartHome.py DEBUG knx: 1.1.0 set 4/2/203 to 68 -- __init__.py:parse_telegram:180 2013-06-19 08:58:47,258 Scheduler DEBUG series next time: 2013-06-19 08:58:57+02:00 -- scheduler.py:_next_time:238 2013-06-19 08:58:51,569 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 40 -- __init__.py:parse_telegram:185 2013-06-19 08:58:51,570 SmartHome.py INFO Elternbad.Raffstore.Position = 40 via KNX 1.1.113 -- item.py:_update:219 2013-06-19 08:58:51,625 SmartHome.py DEBUG knx: 1.1.0 set 4/2/203 to 66 -- __init__.py:parse_telegram:180 2013-06-19 08:58:55,211 SmartHome.py DEBUG knx: 1.1.230 set 6/3/150 to 0 5d -- __init__.py:parse_telegram:180 2013-06-19 08:58:56,451 SmartHome.py DEBUG knx: 1.1.113 set 4/2/223 to 40 -- __init__.py:parse_telegram:185
Code:
[Elternbad] [[Raffstore]] [[[AufAb]]] type = bool visu = yes enforce_updates = true knx_dpt = 1 knx_send = 4/2/201 [[[Stopp]]] type = bool visu = yes enforce_updates = true knx_dpt = 1 knx_send = 4/2/202 [[[Position]]] type = num visu = yes knx_dpt = 5001 knx_send = 4/2/203 knx_cache = 4/2/223 [[[Lamelle]]] type = num visu = yes knx_dpt = 5001 knx_send = 4/2/204 knx_cache = 4/2/224 [[[Referenzfahrt]]] type = bool visu = yes enforce_updates = true knx_dpt = 1 knx_send = 4/2/210 [[[Automatik]]] type = bool visu = yes knx_dpt = 1 knx_send = 4/2/212 knx_cache = 4/2/228
Code:
{{ device.shutter('Elternbad_Seite.Elternbad.Raffstore', '', 'Elternbad.Raffstore.AufAb', 'Elternbad.Raffstore.Stopp', 'Elternbad.Raffstore.Position', '', 'Elternbad.Raffstore.Lamelle', '', 0, 100, 10, 'full') }} <br /> <label for="Elternbad_Seite.Elternbad.Raffstore.Automatik">Automatik </label> {{ basic.dual('Elternbad_Seite.Elternbad.Raffstore.Automatik', 'Elternbad.Raffstore.Automatik', icon1~'fts_shutter_auto.png', icon0~'fts_shutter_auto.png', '', '') }}
Weitere Logiken hinsichtlich der Raffstore gibt es nicht. Ein Raffstore der in der Visu noch nicht benutzt - wohl aber in sh.py definiert - wird, verhält sich normal.
Ich kann leider nicht einschätzen, wie die Visu-Scripte auf die Rückmeldung des Aktors wohl reagieren.
Grüße
Robert
Kommentar