mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea52b3d40e | ||
|
|
f03b078855 | ||
|
|
f152ce0508 | ||
|
|
dce79eadf6 |
@@ -13,6 +13,19 @@ esphome:
|
|||||||
esp32:
|
esp32:
|
||||||
board: esp32dev
|
board: esp32dev
|
||||||
|
|
||||||
|
packages:
|
||||||
|
internals_packages:
|
||||||
|
url: https://github.com/boneIO-eu/esphome
|
||||||
|
ref: v1.0.7
|
||||||
|
files:
|
||||||
|
[
|
||||||
|
'devices/dimmer_buzzer.yaml',
|
||||||
|
'devices/dimmer_i2c.yaml',
|
||||||
|
'devices/dimmer_ina219.yaml',
|
||||||
|
'devices/dimmer_lm75.yaml',
|
||||||
|
'devices/dimmer_outputs.yaml',
|
||||||
|
]
|
||||||
|
|
||||||
ethernet:
|
ethernet:
|
||||||
id: eth
|
id: eth
|
||||||
type: LAN8720
|
type: LAN8720
|
||||||
@@ -23,15 +36,9 @@ ethernet:
|
|||||||
power_pin: GPIO16
|
power_pin: GPIO16
|
||||||
|
|
||||||
dashboard_import:
|
dashboard_import:
|
||||||
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_2rgbw-v0_1.yaml@v1.0.5
|
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_2rgbw-v0_3.yaml@v1.0.7
|
||||||
import_full_config: true
|
import_full_config: true
|
||||||
|
|
||||||
i2c:
|
|
||||||
sda: GPIO4
|
|
||||||
scl: GPIO5
|
|
||||||
scan: True
|
|
||||||
frequency: 400kHz
|
|
||||||
|
|
||||||
pcf8574:
|
pcf8574:
|
||||||
- id: 'pcf_inputs'
|
- id: 'pcf_inputs'
|
||||||
address: 0x38
|
address: 0x38
|
||||||
@@ -133,98 +140,3 @@ light:
|
|||||||
white: chr04
|
white: chr04
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: tmp102
|
|
||||||
id: boneIO_temp
|
|
||||||
name: 'Temperature'
|
|
||||||
update_interval: 30s
|
|
||||||
entity_category: diagnostic
|
|
||||||
- platform: ina219
|
|
||||||
address: 0x40
|
|
||||||
shunt_resistance: 1.0 ohm
|
|
||||||
bus_voltage:
|
|
||||||
name: 'VDDL Supply'
|
|
||||||
unit_of_measurement: 'V'
|
|
||||||
entity_category: diagnostic
|
|
||||||
current:
|
|
||||||
name: 'VDDL Current'
|
|
||||||
unit_of_measurement: 'A'
|
|
||||||
entity_category: diagnostic
|
|
||||||
shunt_voltage:
|
|
||||||
name: 'VDDL Shunt Voltage'
|
|
||||||
entity_category: diagnostic
|
|
||||||
max_voltage: 32V
|
|
||||||
max_current: 3.2A
|
|
||||||
update_interval: 5s
|
|
||||||
- platform: ina219
|
|
||||||
address: 0x41
|
|
||||||
shunt_resistance: 1.0 ohm
|
|
||||||
bus_voltage:
|
|
||||||
name: 'VDDR Supply'
|
|
||||||
unit_of_measurement: 'V'
|
|
||||||
entity_category: diagnostic
|
|
||||||
current:
|
|
||||||
name: 'VDDR Current'
|
|
||||||
unit_of_measurement: 'A'
|
|
||||||
entity_category: diagnostic
|
|
||||||
shunt_voltage:
|
|
||||||
name: 'VDDR Shunt Voltage'
|
|
||||||
entity_category: diagnostic
|
|
||||||
max_voltage: 32V
|
|
||||||
max_current: 3.2A
|
|
||||||
update_interval: 5s
|
|
||||||
|
|
||||||
switch:
|
|
||||||
- platform: gpio
|
|
||||||
id: buzzer
|
|
||||||
name: 'Buzzer'
|
|
||||||
pin:
|
|
||||||
pcf8574: pcf_inputs
|
|
||||||
number: 0
|
|
||||||
mode:
|
|
||||||
output: true
|
|
||||||
inverted: true
|
|
||||||
152
boneio-dimmer_4cct-v0_3.yaml
Normal file
152
boneio-dimmer_4cct-v0_3.yaml
Normal file
@@ -0,0 +1,152 @@
|
|||||||
|
substitutions:
|
||||||
|
name: boneio-dr-4cct-03
|
||||||
|
friendly_name: 'BoneIO Dimmer LED'
|
||||||
|
|
||||||
|
esphome:
|
||||||
|
name: '${name}'
|
||||||
|
friendly_name: '${friendly_name}'
|
||||||
|
name_add_mac_suffix: true
|
||||||
|
project:
|
||||||
|
name: boneio.dimmer-led
|
||||||
|
version: '0.3'
|
||||||
|
|
||||||
|
esp32:
|
||||||
|
board: esp32dev
|
||||||
|
|
||||||
|
packages:
|
||||||
|
internals_packages:
|
||||||
|
url: https://github.com/boneIO-eu/esphome
|
||||||
|
ref: v1.0.7
|
||||||
|
files:
|
||||||
|
[
|
||||||
|
'devices/dimmer_buzzer.yaml',
|
||||||
|
'devices/dimmer_i2c.yaml',
|
||||||
|
'devices/dimmer_ina219.yaml',
|
||||||
|
'devices/dimmer_lm75.yaml',
|
||||||
|
'devices/dimmer_outputs.yaml',
|
||||||
|
]
|
||||||
|
|
||||||
|
ethernet:
|
||||||
|
id: eth
|
||||||
|
type: LAN8720
|
||||||
|
mdc_pin: GPIO23
|
||||||
|
mdio_pin: GPIO18
|
||||||
|
clk_mode: GPIO0_IN
|
||||||
|
phy_addr: 1
|
||||||
|
power_pin: GPIO16
|
||||||
|
|
||||||
|
dashboard_import:
|
||||||
|
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_4cct-v0_3.yaml@v1.0.7
|
||||||
|
import_full_config: true
|
||||||
|
|
||||||
|
pcf8574:
|
||||||
|
- id: 'pcf_inputs'
|
||||||
|
address: 0x38
|
||||||
|
|
||||||
|
logger:
|
||||||
|
api:
|
||||||
|
ota:
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 80
|
||||||
|
local: true
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: version
|
||||||
|
name: 'boneio-dimmer- Version'
|
||||||
|
icon: mdi:cube-outline
|
||||||
|
entity_category: diagnostic
|
||||||
|
- platform: ethernet_info
|
||||||
|
ip_address:
|
||||||
|
entity_category: diagnostic
|
||||||
|
name: boneio-dimmer IP
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_01'
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 1
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_02'
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 2
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_03'
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 3
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_04'
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_05'
|
||||||
|
pin:
|
||||||
|
number: 36
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_06'
|
||||||
|
pin:
|
||||||
|
number: 39
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_07'
|
||||||
|
pin:
|
||||||
|
number: 34
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_08'
|
||||||
|
pin:
|
||||||
|
number: 35
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: cwww
|
||||||
|
name: 'CHL_01_02'
|
||||||
|
cold_white: chl01
|
||||||
|
warm_white: chl02
|
||||||
|
cold_white_color_temperature: 6536 K
|
||||||
|
warm_white_color_temperature: 2000 K
|
||||||
|
- platform: cwww
|
||||||
|
name: 'CHL_03_04'
|
||||||
|
cold_white: chl03
|
||||||
|
warm_white: chl04
|
||||||
|
cold_white_color_temperature: 6536 K
|
||||||
|
warm_white_color_temperature: 2000 K
|
||||||
|
|
||||||
|
- platform: cwww
|
||||||
|
name: 'CHR_01_02'
|
||||||
|
cold_white: chl01
|
||||||
|
warm_white: chl02
|
||||||
|
cold_white_color_temperature: 6536 K
|
||||||
|
warm_white_color_temperature: 2000 K
|
||||||
|
|
||||||
|
- platform: cwww
|
||||||
|
name: 'CHR_03_04'
|
||||||
|
cold_white: chl03
|
||||||
|
warm_white: chl04
|
||||||
|
cold_white_color_temperature: 6536 K
|
||||||
|
warm_white_color_temperature: 2000 K
|
||||||
@@ -13,6 +13,19 @@ esphome:
|
|||||||
esp32:
|
esp32:
|
||||||
board: esp32dev
|
board: esp32dev
|
||||||
|
|
||||||
|
packages:
|
||||||
|
internals_packages:
|
||||||
|
url: https://github.com/boneIO-eu/esphome
|
||||||
|
ref: v1.0.7
|
||||||
|
files:
|
||||||
|
[
|
||||||
|
'devices/dimmer_buzzer.yaml',
|
||||||
|
'devices/dimmer_i2c.yaml',
|
||||||
|
'devices/dimmer_ina219.yaml',
|
||||||
|
'devices/dimmer_lm75.yaml',
|
||||||
|
'devices/dimmer_outputs.yaml',
|
||||||
|
]
|
||||||
|
|
||||||
ethernet:
|
ethernet:
|
||||||
id: eth
|
id: eth
|
||||||
type: LAN8720
|
type: LAN8720
|
||||||
@@ -23,15 +36,9 @@ ethernet:
|
|||||||
power_pin: GPIO16
|
power_pin: GPIO16
|
||||||
|
|
||||||
dashboard_import:
|
dashboard_import:
|
||||||
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_8ch-v0_1.yaml@v1.0.5
|
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_8ch-v0_3.yaml@v1.0.7
|
||||||
import_full_config: true
|
import_full_config: true
|
||||||
|
|
||||||
i2c:
|
|
||||||
sda: GPIO4
|
|
||||||
scl: GPIO5
|
|
||||||
scan: True
|
|
||||||
frequency: 400kHz
|
|
||||||
|
|
||||||
pcf8574:
|
pcf8574:
|
||||||
- id: 'pcf_inputs'
|
- id: 'pcf_inputs'
|
||||||
address: 0x38
|
address: 0x38
|
||||||
@@ -166,100 +173,3 @@ light:
|
|||||||
id: chr_04
|
id: chr_04
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
# Lower board temperature
|
|
||||||
- platform: tmp102
|
|
||||||
id: boneIO_temp
|
|
||||||
name: 'Temperature'
|
|
||||||
update_interval: 10s
|
|
||||||
entity_category: diagnostic
|
|
||||||
|
|
||||||
- platform: ina219
|
|
||||||
address: 0x40
|
|
||||||
shunt_resistance: 1.0 ohm
|
|
||||||
bus_voltage:
|
|
||||||
name: 'VDDL Supply'
|
|
||||||
unit_of_measurement: 'V'
|
|
||||||
entity_category: diagnostic
|
|
||||||
current:
|
|
||||||
name: 'VDDL Current'
|
|
||||||
unit_of_measurement: 'A'
|
|
||||||
entity_category: diagnostic
|
|
||||||
shunt_voltage:
|
|
||||||
name: 'VDDL Shunt Voltage'
|
|
||||||
entity_category: diagnostic
|
|
||||||
max_voltage: 32V
|
|
||||||
max_current: 3.2A
|
|
||||||
update_interval: 5s
|
|
||||||
- platform: ina219
|
|
||||||
address: 0x41
|
|
||||||
shunt_resistance: 1.0 ohm
|
|
||||||
bus_voltage:
|
|
||||||
name: 'VDDR Supply'
|
|
||||||
unit_of_measurement: 'V'
|
|
||||||
entity_category: diagnostic
|
|
||||||
current:
|
|
||||||
name: 'VDDR Current'
|
|
||||||
unit_of_measurement: 'A'
|
|
||||||
entity_category: diagnostic
|
|
||||||
shunt_voltage:
|
|
||||||
name: 'VDDR Shunt Voltage'
|
|
||||||
entity_category: diagnostic
|
|
||||||
max_voltage: 32V
|
|
||||||
max_current: 3.2A
|
|
||||||
update_interval: 5s
|
|
||||||
|
|
||||||
switch:
|
|
||||||
- platform: gpio
|
|
||||||
id: buzzer
|
|
||||||
name: 'Buzzer'
|
|
||||||
pin:
|
|
||||||
pcf8574: pcf_inputs
|
|
||||||
number: 0
|
|
||||||
mode:
|
|
||||||
output: true
|
|
||||||
inverted: true
|
|
||||||
@@ -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,
|
||||||
|
|||||||
10
devices/dimmer_buzzer.yaml
Normal file
10
devices/dimmer_buzzer.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
id: buzzer
|
||||||
|
name: 'Buzzer'
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 0
|
||||||
|
mode:
|
||||||
|
output: true
|
||||||
|
inverted: true
|
||||||
5
devices/dimmer_i2c.yaml
Normal file
5
devices/dimmer_i2c.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
i2c:
|
||||||
|
sda: GPIO4
|
||||||
|
scl: GPIO5
|
||||||
|
scan: True
|
||||||
|
frequency: 400kHz
|
||||||
35
devices/dimmer_ina219.yaml
Normal file
35
devices/dimmer_ina219.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: ina219
|
||||||
|
address: 0x40
|
||||||
|
shunt_resistance: 0.005 ohm
|
||||||
|
bus_voltage:
|
||||||
|
name: 'VDDL Supply'
|
||||||
|
unit_of_measurement: 'V'
|
||||||
|
entity_category: diagnostic
|
||||||
|
current:
|
||||||
|
name: 'VDDL Current'
|
||||||
|
unit_of_measurement: 'A'
|
||||||
|
entity_category: diagnostic
|
||||||
|
shunt_voltage:
|
||||||
|
name: 'VDDL Shunt Voltage'
|
||||||
|
entity_category: diagnostic
|
||||||
|
max_voltage: 32V
|
||||||
|
max_current: 3.2A
|
||||||
|
update_interval: 5s
|
||||||
|
- platform: ina219
|
||||||
|
address: 0x41
|
||||||
|
shunt_resistance: 0.005 ohm
|
||||||
|
bus_voltage:
|
||||||
|
name: 'VDDR Supply'
|
||||||
|
unit_of_measurement: 'V'
|
||||||
|
entity_category: diagnostic
|
||||||
|
current:
|
||||||
|
name: 'VDDR Current'
|
||||||
|
unit_of_measurement: 'A'
|
||||||
|
entity_category: diagnostic
|
||||||
|
shunt_voltage:
|
||||||
|
name: 'VDDR Shunt Voltage'
|
||||||
|
entity_category: diagnostic
|
||||||
|
max_voltage: 32V
|
||||||
|
max_current: 3.2A
|
||||||
|
update_interval: 5s
|
||||||
19
devices/dimmer_lm75.yaml
Normal file
19
devices/dimmer_lm75.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#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
|
||||||
42
devices/dimmer_outputs.yaml
Normal file
42
devices/dimmer_outputs.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user