Compare commits

...

8 Commits

Author SHA1 Message Date
pszafer
ac9c9d6ac5 dimmer serial no 2024-05-22 10:00:46 +02:00
pszafer
8733d0f625 add serial number 2024-05-22 09:59:52 +02:00
pszafer
9a5c78334d fix INA to 10A 2024-05-22 09:59:44 +02:00
pszafer
28c60689c6 Dimmer output 2024-05-20 13:10:50 +02:00
pszafer
3ac8e38f75 move dimmer and buzzer to main dimmer file 2024-05-20 09:07:31 +02:00
pszafer
ea52b3d40e fix channel naming 2024-05-19 22:35:02 +02:00
pszafer
f03b078855 fix tag ref 2024-05-19 22:32:51 +02:00
pszafer
f152ce0508 rename ina to ina219 2024-05-19 22:31:33 +02:00
8 changed files with 251 additions and 53 deletions

View File

@@ -13,17 +13,19 @@ 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.6 ref: v1.0.10
files: files:
[ [
'devices/dimmer_buzzer.yaml', 'devices/dimmer_serial_no.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',
] ]
ethernet: ethernet:
@@ -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.6 package_import_url: github://boneIO-eu/esphome/boneio-dimmer_2rgbw-v0_3.yaml@v1.0.10
import_full_config: true import_full_config: true
pcf8574: pcf8574:
@@ -123,6 +125,49 @@ binary_sensor:
input: true input: true
inverted: true inverted: true
output:
- platform: ledc
pin: 33
frequency: 1000Hz
inverted: false
id: chl01
- platform: ledc
pin: 32
frequency: 1000Hz
inverted: false
id: chl02
- platform: ledc
pin: 12
frequency: 1000Hz
inverted: false
id: chl03
- platform: ledc
pin: 14
frequency: 1000Hz
inverted: false
id: chl04
- platform: ledc
pin: 13
frequency: 1000Hz
inverted: false
id: chr01
- platform: ledc
pin: 15
frequency: 1000Hz
inverted: false
id: chr02
- platform: ledc
pin: 2
frequency: 1000Hz
inverted: false
id: chr03
- platform: ledc
pin: 17
frequency: 1000Hz
inverted: false
id: chr04
light: light:
- platform: rgbw - platform: rgbw
name: 'RGBW L' name: 'RGBW L'
@@ -140,3 +185,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,17 +13,19 @@ 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.6 ref: v1.0.10
files: files:
[ [
'devices/dimmer_buzzer.yaml', 'devices/dimmer_serial_no.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',
] ]
ethernet: ethernet:
@@ -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.6 package_import_url: github://boneIO-eu/esphome/boneio-dimmer_4cct-v0_3.yaml@v1.0.10
import_full_config: true import_full_config: true
pcf8574: pcf8574:
@@ -56,10 +58,18 @@ text_sensor:
name: 'boneio-dimmer- Version' name: 'boneio-dimmer- Version'
icon: mdi:cube-outline icon: mdi:cube-outline
entity_category: diagnostic entity_category: diagnostic
update_interval: 10m
- platform: ethernet_info - platform: ethernet_info
ip_address: ip_address:
entity_category: diagnostic entity_category: diagnostic
name: boneio-dimmer IP name: boneio-dimmer IP
- platform: template
name: 'Hostname'
id: hostname
entity_category: diagnostic
lambda: |-
return id(eth).get_use_address();
update_interval: 60s
binary_sensor: binary_sensor:
- platform: gpio - platform: gpio
@@ -123,6 +133,49 @@ binary_sensor:
input: true input: true
inverted: true inverted: true
output:
- platform: ledc
pin: 33
frequency: 1000Hz
inverted: false
id: chl01
- platform: ledc
pin: 32
frequency: 1000Hz
inverted: false
id: chl02
- platform: ledc
pin: 12
frequency: 1000Hz
inverted: false
id: chl03
- platform: ledc
pin: 14
frequency: 1000Hz
inverted: false
id: chl04
- platform: ledc
pin: 13
frequency: 1000Hz
inverted: false
id: chr01
- platform: ledc
pin: 15
frequency: 1000Hz
inverted: false
id: chr02
- platform: ledc
pin: 2
frequency: 1000Hz
inverted: false
id: chr03
- platform: ledc
pin: 17
frequency: 1000Hz
inverted: false
id: chr04
light: light:
- platform: cwww - platform: cwww
name: 'CHL_01_02' name: 'CHL_01_02'
@@ -138,15 +191,40 @@ light:
warm_white_color_temperature: 2000 K warm_white_color_temperature: 2000 K
- platform: cwww - platform: cwww
name: 'CHL_05_06' name: 'CHR_01_02'
cold_white: chl05 cold_white: chl01
warm_white: chl06 warm_white: chl02
cold_white_color_temperature: 6536 K cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K warm_white_color_temperature: 2000 K
- platform: cwww - platform: cwww
name: 'CHL_07_08' name: 'CHR_03_04'
cold_white: chl07 cold_white: chl03
warm_white: chl08 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,17 +13,19 @@ 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.6 ref: v1.0.10
files: files:
[ [
'devices/dimmer_buzzer.yaml', 'devices/dimmer_serial_no.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',
] ]
ethernet: ethernet:
@@ -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.6 package_import_url: github://boneIO-eu/esphome/boneio-dimmer_8ch-v0_3.yaml@v1.0.10
import_full_config: true import_full_config: true
pcf8574: pcf8574:
@@ -123,6 +125,49 @@ binary_sensor:
input: true input: true
inverted: true inverted: true
output:
- platform: ledc
pin: 33
frequency: 1000Hz
inverted: false
id: chl01
- platform: ledc
pin: 32
frequency: 1000Hz
inverted: false
id: chl02
- platform: ledc
pin: 12
frequency: 1000Hz
inverted: false
id: chl03
- platform: ledc
pin: 14
frequency: 1000Hz
inverted: false
id: chl04
- platform: ledc
pin: 13
frequency: 1000Hz
inverted: false
id: chr01
- platform: ledc
pin: 15
frequency: 1000Hz
inverted: false
id: chr02
- platform: ledc
pin: 2
frequency: 1000Hz
inverted: false
id: chr03
- platform: ledc
pin: 17
frequency: 1000Hz
inverted: false
id: chr04
light: light:
- platform: monochromatic - platform: monochromatic
output: chl01 output: chl01
@@ -173,3 +218,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

@@ -21,7 +21,7 @@ firmware_destination = "../website/public/esp/firmware"
def json_pattern(firmware_name): def json_pattern(firmware_name):
return { return {
"name": "ESPHome", "name": "ESPHome",
"version": "2024.3.1", "version": "2024.5.0",
"home_assistant_domain": "esphome", "home_assistant_domain": "esphome",
"funding_url": "https://esphome.io/guides/supporters.html", "funding_url": "https://esphome.io/guides/supporters.html",
"new_install_prompt_erase": False, "new_install_prompt_erase": False,

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

@@ -14,7 +14,7 @@ sensor:
name: 'VDDL Shunt Voltage' name: 'VDDL Shunt Voltage'
entity_category: diagnostic entity_category: diagnostic
max_voltage: 32V max_voltage: 32V
max_current: 3.2A max_current: 10A
update_interval: 5s update_interval: 5s
- platform: ina219 - platform: ina219
address: 0x41 address: 0x41
@@ -31,5 +31,5 @@ sensor:
name: 'VDDR Shunt Voltage' name: 'VDDR Shunt Voltage'
entity_category: diagnostic entity_category: diagnostic
max_voltage: 32V max_voltage: 32V
max_current: 3.2A max_current: 10A
update_interval: 5s update_interval: 5s

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

View File

@@ -0,0 +1,9 @@
text_sensor:
- platform: template
name: 'Serial No.'
lambda: |-
std::string mac = get_mac_address();
return "dim" + mac.erase(0, mac.length()/2);
icon: mdi:expansion-card-variant
entity_category: diagnostic
update_interval: 10m