diff --git a/README.md b/README.md index ae49a4e..e7a2c83 100644 --- a/README.md +++ b/README.md @@ -137,10 +137,11 @@ key | optional | type | default | description `class` | False | string | AutoMoLi | The name of the Class. `room` | False | string | | The "room" used to find matching sensors/light `disable_switch_entities` | True | list/string | | One or more Home Assistant Entities as switch for AutoMoLi. If the state of **any** entity is *off*, AutoMoLi is *deactivated*. (Use an *input_boolean* for example) -`only_own_events` | True | bool | | Track if automoli switched this light on. If not, an existing timer will be deleted and the state will not change +`only_own_events` | True | bool | None | Track if automoli switched this light on. If not, automoli will not switch the light off. (see below) `disable_switch_states` | True | list/string | ["off"] | Custom states for `disable_switch_entities`. If the state of **any** entity is *in this list*, AutoMoLi is *deactivated*. Can be used to disable with `media_players` in `playing` state for example. `disable_hue_groups` | False | boolean | | Disable the use of Hue Groups/Scenes `delay` | True | integer | 150 | Seconds without motion until lights will switched off. Can be disabled (lights stay always on) with `0` +`delay_outside_events` | True | integer | same as delay | Seconds without motion until lights will switched off, if they were turned on by an event outside automoli (e.g., manually, via automation, etc.). Can be disabled (lights stay always on) with `0` ~~`motion_event`~~ | ~~True~~ | ~~string~~ | | **replaced by `motion_state_on/off`** `daytimes` | True | list | *see code* | Different daytimes with light settings (see below) `transition_on_daytime_switch` | True | bool | False | directly activate a daytime on its start time (instead to just set it as active daytime used if lights are switched from off to on) @@ -150,8 +151,8 @@ key | optional | type | default | description `illuminance_threshold` | True | integer | | If illuminance is *above* this value, lights will *not switched on* `humidity` | True | list/string | | Humidity sensor entities `humidity_threshold` | True | integer | | If humidity is *above* this value, lights will *not switched off* -`motion_state_on` | True | integer | | If using motion sensors which don't send events if already activated, like Xiaomi do, add this to your config with "on". This will listen to state changes instead -`motion_state_off` | True | integer | | If using motion sensors which don't send events if already activated, like Xiaomi do, add this to your config with "off". This will listen to the state changes instead. +`motion_state_on` | True | integer | | If using motion sensors which don't send events if already activated, like Xiaomi do with the Xiaomi Gateway (Aqara) integration, add this to your config with "on". This will listen to state changes instead +`motion_state_off` | True | integer | | If using motion sensors which don't send events if already activated, like Xiaomi do with the Xiaomi Gateway (Aqara) integration, add this to your config with "off". This will listen to the state changes instead `debug_log` | True | bool | false | Activate debug logging (for this room) ### daytimes @@ -163,6 +164,16 @@ key | optional | type | default | description `delay` | True | integer | 150 | Seconds without motion until lights will switched off. Can be disabled (lights stay always on) with `0`. Setting this will overwrite the global `delay` setting for this daytime. `light` | False | integer/string | | Light setting (percent integer value (0-100) in or scene entity +Note: If there is only one daytime, the light and delay settings will be applied for the entire day, regardless of the starttime. + +### only_own_events + +state | description +-- | -- +None | Lights will be turned off after motion is detected, regardless of whether AutoMoLi turned the lights on. +False | Lights will be turned off after motion is detected, regardless of whether AutoMoLi turned the lights on AND after the delay if they were turned on outside AutoMoLi (e.g., manually or via an automation). +True | Lights will only be turned off after motion is detected, if AutoMoLi turned the lights on. + ---