move dimmer and buzzer to main dimmer file

This commit is contained in:
pszafer
2024-05-20 09:07:31 +02:00
parent ea52b3d40e
commit 3ac8e38f75
5 changed files with 93 additions and 41 deletions

View File

@@ -13,16 +13,18 @@ esphome:
esp32: esp32:
board: esp32dev board: esp32dev
external_components:
- source: github://boneIO-eu/esphome-LM75@main #Original source and thank you note for BTomala https://github.com/boneIO-eu/esphome-lm75
components: [lm75]
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.7 ref: v1.0.8
files: files:
[ [
'devices/dimmer_buzzer.yaml',
'devices/dimmer_i2c.yaml', 'devices/dimmer_i2c.yaml',
'devices/dimmer_ina219.yaml', 'devices/dimmer_ina219.yaml',
'devices/dimmer_lm75.yaml',
'devices/dimmer_outputs.yaml', 'devices/dimmer_outputs.yaml',
] ]
@@ -36,7 +38,7 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_2rgbw-v0_3.yaml@v1.0.7 package_import_url: github://boneIO-eu/esphome/boneio-dimmer_2rgbw-v0_3.yaml@v1.0.8
import_full_config: true import_full_config: true
pcf8574: pcf8574:
@@ -140,3 +142,28 @@ light:
white: chr04 white: chr04
default_transition_length: 2s default_transition_length: 2s
gamma_correct: 0 gamma_correct: 0
sensor:
- platform: lm75
id: boneIO_temp
name: 'Temperature'
update_interval: 30s
entity_category: diagnostic
on_value_range:
- above: 70.0
then:
- switch.turn_on: buzzer
- below: 70.0
then:
- switch.turn_off: buzzer
switch:
- platform: gpio
id: buzzer
name: 'Buzzer'
pin:
pcf8574: pcf_inputs
number: 0
mode:
output: true
inverted: true

View File

@@ -13,16 +13,18 @@ esphome:
esp32: esp32:
board: esp32dev board: esp32dev
external_components:
- source: github://boneIO-eu/esphome-LM75@main #Original source and thank you note for BTomala https://github.com/boneIO-eu/esphome-lm75
components: [lm75]
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.7 ref: v1.0.8
files: files:
[ [
'devices/dimmer_buzzer.yaml',
'devices/dimmer_i2c.yaml', 'devices/dimmer_i2c.yaml',
'devices/dimmer_ina219.yaml', 'devices/dimmer_ina219.yaml',
'devices/dimmer_lm75.yaml',
'devices/dimmer_outputs.yaml', 'devices/dimmer_outputs.yaml',
] ]
@@ -36,7 +38,7 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_4cct-v0_3.yaml@v1.0.7 package_import_url: github://boneIO-eu/esphome/boneio-dimmer_4cct-v0_3.yaml@v1.0.8
import_full_config: true import_full_config: true
pcf8574: pcf8574:
@@ -150,3 +152,28 @@ light:
warm_white: chl04 warm_white: chl04
cold_white_color_temperature: 6536 K cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K warm_white_color_temperature: 2000 K
sensor:
- platform: lm75
id: boneIO_temp
name: 'Temperature'
update_interval: 30s
entity_category: diagnostic
on_value_range:
- above: 70.0
then:
- switch.turn_on: buzzer
- below: 70.0
then:
- switch.turn_off: buzzer
switch:
- platform: gpio
id: buzzer
name: 'Buzzer'
pin:
pcf8574: pcf_inputs
number: 0
mode:
output: true
inverted: true

View File

@@ -13,16 +13,18 @@ esphome:
esp32: esp32:
board: esp32dev board: esp32dev
external_components:
- source: github://boneIO-eu/esphome-LM75@main #Original source and thank you note for BTomala https://github.com/boneIO-eu/esphome-lm75
components: [lm75]
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.7 ref: v1.0.8
files: files:
[ [
'devices/dimmer_buzzer.yaml',
'devices/dimmer_i2c.yaml', 'devices/dimmer_i2c.yaml',
'devices/dimmer_ina219.yaml', 'devices/dimmer_ina219.yaml',
'devices/dimmer_lm75.yaml',
'devices/dimmer_outputs.yaml', 'devices/dimmer_outputs.yaml',
] ]
@@ -36,7 +38,7 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_8ch-v0_3.yaml@v1.0.7 package_import_url: github://boneIO-eu/esphome/boneio-dimmer_8ch-v0_3.yaml@v1.0.8
import_full_config: true import_full_config: true
pcf8574: pcf8574:
@@ -173,3 +175,28 @@ light:
id: chr_04 id: chr_04
default_transition_length: 2s default_transition_length: 2s
gamma_correct: 0 gamma_correct: 0
sensor:
- platform: lm75
id: boneIO_temp
name: 'Temperature'
update_interval: 30s
entity_category: diagnostic
on_value_range:
- above: 70.0
then:
- switch.turn_on: buzzer
- below: 70.0
then:
- switch.turn_off: buzzer
switch:
- platform: gpio
id: buzzer
name: 'Buzzer'
pin:
pcf8574: pcf_inputs
number: 0
mode:
output: true
inverted: true

View File

@@ -1,10 +0,0 @@
switch:
- platform: gpio
id: buzzer
name: 'Buzzer'
pin:
pcf8574: pcf_inputs
number: 0
mode:
output: true
inverted: true

View File

@@ -1,19 +0,0 @@
#i2c address: 0x48 output lm75b temp
#LM75B
external_components:
- source: github://boneIO-eu/esphome-LM75@main #Original source and thank you note for BTomala https://github.com/boneIO-eu/esphome-lm75
components: [lm75]
sensor:
- platform: lm75
id: boneIO_temp
name: 'Temperature'
update_interval: 30s
entity_category: diagnostic
on_value_range:
- above: 70.0
then:
- switch.turn_on: buzzer
- below: 70.0
then:
- switch.turn_off: buzzer