From 56a32dfa83025000a775c1dddd0e0c4ccd83e857 Mon Sep 17 00:00:00 2001 From: pszafer Date: Fri, 25 Oct 2024 09:22:45 +0200 Subject: [PATCH 1/2] fix typo boards --- boneio-dimmer_2rgbw-v0_3.yaml | 2 +- boneio-dimmer_4cct-v0_3.yaml | 2 +- boneio-dimmer_8ch-v0_3.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boneio-dimmer_2rgbw-v0_3.yaml b/boneio-dimmer_2rgbw-v0_3.yaml index b7c84b4..25dcb26 100644 --- a/boneio-dimmer_2rgbw-v0_3.yaml +++ b/boneio-dimmer_2rgbw-v0_3.yaml @@ -27,7 +27,7 @@ packages: 'devices/serial_no.yaml', 'devices/dimmer_i2c.yaml', 'devices/dimmer_ina219.yaml', - 'board/dimmer_output.yaml', + 'boards/dimmer_output.yaml', ] ethernet: diff --git a/boneio-dimmer_4cct-v0_3.yaml b/boneio-dimmer_4cct-v0_3.yaml index f7f5d01..d4058cd 100644 --- a/boneio-dimmer_4cct-v0_3.yaml +++ b/boneio-dimmer_4cct-v0_3.yaml @@ -27,7 +27,7 @@ packages: 'devices/serial_no.yaml', 'devices/dimmer_i2c.yaml', 'devices/dimmer_ina219.yaml', - 'board/dimmer_output.yaml', + 'boards/dimmer_output.yaml', ] ethernet: diff --git a/boneio-dimmer_8ch-v0_3.yaml b/boneio-dimmer_8ch-v0_3.yaml index 39fe0e4..097af6c 100644 --- a/boneio-dimmer_8ch-v0_3.yaml +++ b/boneio-dimmer_8ch-v0_3.yaml @@ -27,7 +27,7 @@ packages: 'devices/serial_no.yaml', 'devices/dimmer_i2c.yaml', 'devices/dimmer_ina219.yaml', - 'board/dimmer_output.yaml', + 'boards/dimmer_output.yaml', ] ethernet: From acfc4aea01f2c2e8144f0e25f1e7a7284954b228 Mon Sep 17 00:00:00 2001 From: pszafer Date: Fri, 25 Oct 2024 09:33:22 +0200 Subject: [PATCH 2/2] add multiclick on dimmer --- boneio-dimmer_8ch-v0_3.yaml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/boneio-dimmer_8ch-v0_3.yaml b/boneio-dimmer_8ch-v0_3.yaml index 097af6c..1852626 100644 --- a/boneio-dimmer_8ch-v0_3.yaml +++ b/boneio-dimmer_8ch-v0_3.yaml @@ -245,15 +245,15 @@ binary_sensor: then: - if: condition: - lambda: 'return id(chl_05).current_values.get_brightness() >= 0.90f;' + lambda: 'return id(chr_01).current_values.get_brightness() >= 0.90f;' then: - light.turn_on: - id: chl_05 + id: chr_01 brightness: 5% transition_length: 0.2s else: - light.dim_relative: - id: chl_05 + id: chr_01 relative_brightness: 5% transition_length: 0.2s - delay: 200ms @@ -262,7 +262,7 @@ binary_sensor: - ON for at most 0.4s - OFF for at least 0.1s then: - light.toggle: chl_05 + light.toggle: chr_01 invalid_cooldown: 0.5s - platform: gpio name: 'IN_06' @@ -282,15 +282,15 @@ binary_sensor: then: - if: condition: - lambda: 'return id(chl_06).current_values.get_brightness() >= 0.90f;' + lambda: 'return id(chr_02).current_values.get_brightness() >= 0.90f;' then: - light.turn_on: - id: chl_06 + id: chr_02 brightness: 5% transition_length: 0.2s else: - light.dim_relative: - id: chl_06 + id: chr_02 relative_brightness: 5% transition_length: 0.2s - delay: 200ms @@ -299,7 +299,7 @@ binary_sensor: - ON for at most 0.4s - OFF for at least 0.1s then: - light.toggle: chl_06 + light.toggle: chr_02 invalid_cooldown: 0.5s - platform: gpio name: 'IN_07' @@ -319,15 +319,15 @@ binary_sensor: then: - if: condition: - lambda: 'return id(chl_07).current_values.get_brightness() >= 0.90f;' + lambda: 'return id(chr_03).current_values.get_brightness() >= 0.90f;' then: - light.turn_on: - id: chl_07 + id: chr_03 brightness: 5% transition_length: 0.2s else: - light.dim_relative: - id: chl_07 + id: chr_03 relative_brightness: 5% transition_length: 0.2s - delay: 200ms @@ -336,7 +336,7 @@ binary_sensor: - ON for at most 0.4s - OFF for at least 0.1s then: - light.toggle: chl_07 + light.toggle: chr_03 invalid_cooldown: 0.5s - platform: gpio name: 'IN_08' @@ -356,15 +356,15 @@ binary_sensor: then: - if: condition: - lambda: 'return id(chl_08).current_values.get_brightness() >= 0.90f;' + lambda: 'return id(chr_04).current_values.get_brightness() >= 0.90f;' then: - light.turn_on: - id: chl_08 + id: chr_04 brightness: 5% transition_length: 0.2s else: - light.dim_relative: - id: chl_08 + id: chr_04 relative_brightness: 5% transition_length: 0.2s - delay: 200ms @@ -373,7 +373,7 @@ binary_sensor: - ON for at most 0.4s - OFF for at least 0.1s then: - light.toggle: chl_08 + light.toggle: chr_04 invalid_cooldown: 0.5s light: