Funktioniert auch "fast" wie gewünscht, nur das Plugin "suspended" sich selbst.
Als as_suspen_watch habe ich .updown, .stepstop, .height und .lamella gesetzt, da ich auch manuell direkt Positionen bzw. Lamellenstellungen anfahren möchte. Leider setzt er dadurch die Automatik auf suspend...

Wie habt ihr das gelöst?
Hier noch die Log-Datei:
Code:
2015-10-09 05:42:15.377519 Update state of item Raffstore Wohnen Couch ====================================
2015-10-09 05:42:15.377623 Update triggered by Eval (source=autoblind.trigger dest=None)
2015-10-09 05:42:15.377787 Last state: EG.wohnen.raffstore.couch.night ('Nacht')
2015-10-09 05:42:15.377829 Check if state 'EG.wohnen.raffstore.couch.night' ('Nacht') can be left:
2015-10-09 05:42:15.377862 No condition sets defined -> matching
2015-10-09 05:42:15.377889 State can be left
2015-10-09 05:42:15.377916 Check if state 'EG.wohnen.raffstore.couch.night' ('Nacht') can be entered:
2015-10-09 05:42:15.377944 Check condition set 'enter':
2015-10-09 05:42:15.377990 Condition 'sun_altitude': min=None max=-18 negate=False current=-17.283423156954793
2015-10-09 05:42:15.378020 to high -> not matching
2015-10-09 05:42:15.378047 State can not be entered
2015-10-09 05:42:15.378107 Check if state 'EG.wohnen.raffstore.couch.dawn' ('Morgendämmerung') can be entered:
2015-10-09 05:42:15.378144 Check condition set 'enter':
2015-10-09 05:42:15.378177 Condition 'sun_altitude': min=-18 max=-1 negate=False current=-17.283423156954793
2015-10-09 05:42:15.378212 given limits ok -> matching
2015-10-09 05:42:15.378240 Age of 'sun_altitude': No limits given
2015-10-09 05:42:15.378274 Condition 'time': min=None max=12:00:00 negate=False current=05:42:15.377668
2015-10-09 05:42:15.378299 given limits ok -> matching
2015-10-09 05:42:15.378324 Age of 'time': No limits given
2015-10-09 05:42:15.378350 State can be entered
2015-10-09 05:42:15.378377 Changing to EG.wohnen.raffstore.couch.dawn ('Morgendämmerung')
2015-10-09 05:42:15.378877 Action 'height: Set 'EG.wohnen.raffstore.couch.height' to '100'
2015-10-09 05:42:15.378927 Action 'lamella: Set 'EG.wohnen.raffstore.couch.lamella' to '25'
2015-10-09 05:42:15.379289 Watch suspend triggered ========================================================
2015-10-09 05:42:15.379366 Manual operation: Change of item 'EG.wohnen.raffstore.couch.lamella' by 'Logic' (source='None', dest='None')
2015-10-09 05:42:15.379405 Suspending automatic mode for 7200 seconds.
2015-10-09 05:42:15.688936 Watch suspend triggered ========================================================
2015-10-09 05:42:15.689046 Manual operation: Change of item 'EG.wohnen.raffstore.couch.height' by 'KNX' (source='1.1.6', dest='4/4/62')
2015-10-09 05:42:15.689088 Suspending automatic mode for 7200 seconds.
2015-10-09 05:42:15.737388 Watch suspend triggered ========================================================
2015-10-09 05:42:15.737498 Manual operation: Change of item 'EG.wohnen.raffstore.couch.lamella' by 'KNX' (source='1.1.6', dest='4/4/63')
2015-10-09 05:42:15.737539 Suspending automatic mode for 7200 seconds.
2015-10-09 05:42:16.882136 Update state of item Raffstore Wohnen Couch ====================================
2015-10-09 05:42:16.882247 Update triggered by Timer (source=None dest=None)
2015-10-09 05:42:16.882300 AutoBlind has been suspended after manual changes. Reactivating at 2015-10-09 07:42:15.737567+02:00
Code:
[EG]
[[wohnen]]
[[[raffstore]]]
[[[[couch]]]]
name = Raffstore Wohnen Couch
type = bool
as_plugin = active
eval_trigger = autoblind.trigger
as_laststate_item_id = EG.wohnen.raffstore.couch.auto_laststate_id
as_laststate_item_name = EG.wohnen.raffstore.couch.auto_laststate_name
as_lock_item = EG.wohnen.raffstore.couch.auto_lock
as_suspend_item = EG.wohnen.raffstore.couch.auto_suspend
as_suspend_time = 7200
as_suspend_watch = EG.wohnen.raffstore.couch.updown | EG.wohnen.raffstore.couch.stepstop | EG.wohnen.raffstore.couch.height | EG.wohnen.raffstore.couch.lamella
as_repeat_actions = false
as_item_height = EG.wohnen.raffstore.couch.height
as_item_lamella = EG.wohnen.raffstore.couch.lamella
as_mindelta_lamella = 5
[[[[[night]]]]]
as_use = autoblind.default.night
[[[[[dawn]]]]]
as_use = autoblind.default.dawn
[[[[[dusk]]]]]
as_use = autoblind.default.dusk
[[[[[day]]]]]
as_use = autoblind.default.day
[[[[[auto_laststate_id]]]]]
type = str
visu_acl = r
cache = on
[[[[[auto_laststate_name]]]]]
type = str
visu_acl = r
cache = on
[[[[[auto_lock]]]]]
type = bool
knx_dpt = 1
knx_send = 4/5/61
knx_status = 4/5/62
knx_listen = 4/5/61 | 4/5/60 | 4/5/59 | 4/5/0
visu_acl = rw
cache = on
[[[[[auto_suspend]]]]]
type = bool
knx_dpt = 1
knx_send = 4/5/63
visu_acl = r
[[[[[updown]]]]]
type = bool
knx_dpt = 1
knx_send = 4/0/61
visu_acl = rw
enforce_updates = on
[[[[[stepstop]]]]]
type = bool
knx_dpt = 1
knx_send = 4/1/61
visu_acl = rw
enforce_updates = on
[[[[[height]]]]]
type = num
knx_dpt = 5.001
knx_send = 4/2/61
knx_init = 4/4/62
visu_acl = rw
cache = on
[[[[[lamella]]]]]
type = num
knx_dpt = 5.001
knx_send = 4/3/61
knx_init = 4/4/63
visu_acl = rw
cache = on
[autoblind]
[[trigger]]
type = bool
cycle = 300=1
enforce_updates = yes
[[default]]
as_item_temperature = wetter.temperatur
[[[night]]]
type = foo
name = "Nacht"
as_set_height = value:100
as_set_lamella = value:0
[[[[enter]]]]
as_max_sun_altitude = -18
[[[dawn]]]
type = foo
name = "Morgendämmerung"
as_set_height = value:100
as_set_lamella = value:25
[[[[enter]]]]
as_max_time = 12:00
as_max_sun_altitude = -1
as_min_sun_altitude = -18
[[[dusk]]]
type = foo
name = "Abenddämmerung"
as_set_height = value:100
as_set_lamella = 75
[[[[enter]]]]
as_min_time = 12:00
as_max_sun_altitude = -1
as_min_sun_altitude = -18
[[[day]]]
type = foo
name = "Tag (statisch)"
as_set_height = value:0
as_set_lamella = value:100

Einen Kommentar schreiben: