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:
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:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.0.7
ref: v1.0.8
files:
[
'devices/dimmer_buzzer.yaml',
'devices/dimmer_i2c.yaml',
'devices/dimmer_ina219.yaml',
'devices/dimmer_lm75.yaml',
'devices/dimmer_outputs.yaml',
]
@@ -36,7 +38,7 @@ ethernet:
power_pin: GPIO16
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
pcf8574:
@@ -173,3 +175,28 @@ light:
id: chr_04
default_transition_length: 2s
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