From 5611c02c7ea488c2b7b25ad78bed31d5368e8fea Mon Sep 17 00:00:00 2001 From: klonfish Date: Fri, 31 Jan 2020 00:15:50 +0100 Subject: [PATCH 1/4] Add scene for bright and pleasant light --- configuration.yaml | 1 + scenes/bright_pleasant_light.yaml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 scenes/bright_pleasant_light.yaml diff --git a/configuration.yaml b/configuration.yaml index a0a341d..4da65b8 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -33,6 +33,7 @@ sensor: !include_dir_merge_list sensors switch: !include_dir_merge_list switches light: !include_dir_merge_list lights automation: !include_dir_merge_list automations +scene: !include_dir_merge_list scenes hacs: sidepanel_title: Hacs Store diff --git a/scenes/bright_pleasant_light.yaml b/scenes/bright_pleasant_light.yaml new file mode 100644 index 0000000..c2a4e5b --- /dev/null +++ b/scenes/bright_pleasant_light.yaml @@ -0,0 +1,9 @@ +- name: Bright and Pleasant + entities: + light.fenster_lampen: + state: on + brightness: 255 + xy_color: + - 0.443 + - 0.379 + From 0a0f8ecfd613b046c068a4a68c42ef5bd776b877 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 31 Jan 2020 00:20:04 +0100 Subject: [PATCH 2/4] matemeter via rest --- sensors/sensors.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sensors/sensors.yaml b/sensors/sensors.yaml index 4ab6b17..c3ea578 100644 --- a/sensors/sensors.yaml +++ b/sensors/sensors.yaml @@ -28,3 +28,12 @@ - remaining_bottles scan_interval: 20 command_timeout: 30 + +- platform: rest + name: matemeter + resource: http://cypher/matemeter/api.php + value_template: "{{value_json.remaining_bottles}}" + json_attributes: + - total_bottles_refilled + - total_bottles_sold + - remaining_bottles From e8ebf11c1e13783f47748cf64ddf89d83f1d10f1 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 31 Jan 2020 00:30:24 +0100 Subject: [PATCH 3/4] remove rest & commandline sensor --- sensors/sensors.yaml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/sensors/sensors.yaml b/sensors/sensors.yaml index c3ea578..b5e67c0 100644 --- a/sensors/sensors.yaml +++ b/sensors/sensors.yaml @@ -17,23 +17,3 @@ - platform: command_line name: Python Version command: "python3 --version" - -- platform: command_line - command: "curl cypher/matemeter/api.php" - name: remaining_bottles - value_template: "{{value_json.remaining_bottles}}" - json_attributes: - - total_bottles_refilled - - total_bottles_sold - - remaining_bottles - scan_interval: 20 - command_timeout: 30 - -- platform: rest - name: matemeter - resource: http://cypher/matemeter/api.php - value_template: "{{value_json.remaining_bottles}}" - json_attributes: - - total_bottles_refilled - - total_bottles_sold - - remaining_bottles From ba38289abc8db56907203d2c25ba1f1fd1926c86 Mon Sep 17 00:00:00 2001 From: klonfish Date: Fri, 31 Jan 2020 00:32:31 +0100 Subject: [PATCH 4/4] Add some colorful scenes --- scenes/colorful_lights.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 scenes/colorful_lights.yaml diff --git a/scenes/colorful_lights.yaml b/scenes/colorful_lights.yaml new file mode 100644 index 0000000..07853d9 --- /dev/null +++ b/scenes/colorful_lights.yaml @@ -0,0 +1,28 @@ +- name: Green & Pink + entities: + light.0xec1bbdfffe9cc96e_light: + state: on + brightness: 255 + xy_color: + - 0.46 + - 0.195 + light.0xec1bbdfffe59b929_light: + state: on + brightness: 255 + xy_color: + - 0.172 + - 0.747 +- name: Red & Blue + entities: + light.0xec1bbdfffe9cc96e_light: + state: on + brightness: 255 + xy_color: + - 0.136 + - 0.04 + light.0xec1bbdfffe59b929_light: + state: on + brightness: 255 + xy_color: + - 0.701 + - 0.299