mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
add Resol VBus support (#3976)
Co-authored-by: Samuel Sieb <samuel@sieb.net> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> fixes https://github.com/esphome/feature-requests/issues/1949
This commit is contained in:
@@ -287,6 +287,9 @@ uart:
|
||||
modbus:
|
||||
uart_id: uart1
|
||||
|
||||
vbus:
|
||||
uart_id: uart4
|
||||
|
||||
ota:
|
||||
safe_mode: true
|
||||
port: 3286
|
||||
@@ -799,6 +802,11 @@ sensor:
|
||||
id: adc128s102_channel_0
|
||||
channel: 0
|
||||
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_1:
|
||||
name: Temperature 1
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
|
||||
@@ -904,6 +912,11 @@ binary_sensor:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay1:
|
||||
name: Relay 1 On
|
||||
|
||||
globals:
|
||||
- id: my_global_string
|
||||
type: std::string
|
||||
|
||||
@@ -66,6 +66,9 @@ mqtt:
|
||||
ESP_LOGD("Mqtt Test", "testing/sensor/testing_sensor/state=[%s]", x.c_str());
|
||||
# yamllint enable rule:line-length
|
||||
|
||||
vbus:
|
||||
- uart_id: uart2
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO0
|
||||
@@ -183,6 +186,22 @@ binary_sensor:
|
||||
id: key1
|
||||
key: 1
|
||||
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay2:
|
||||
name: Relay 2 On
|
||||
sensor1_error:
|
||||
name: Sensor 1 Error
|
||||
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
binary_sensors:
|
||||
- id: vcustom_b
|
||||
name: VBus Custom Binary Sensor
|
||||
lambda: return x[0] & 1;
|
||||
|
||||
tlc5947:
|
||||
data_pin: GPIO12
|
||||
@@ -478,6 +497,27 @@ sensor:
|
||||
max_flow_rate:
|
||||
name: Max Flow Rate
|
||||
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_3:
|
||||
name: Temperature 3
|
||||
operating_hours_1:
|
||||
name: Operating Hours 1
|
||||
heat_quantity:
|
||||
name: Heat Quantity
|
||||
time:
|
||||
name: System Time
|
||||
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
sensors:
|
||||
- id: vcustom
|
||||
name: VBus Custom Sensor
|
||||
lambda: return x[0] / 10.0;
|
||||
|
||||
script:
|
||||
- id: automation_test
|
||||
then:
|
||||
|
||||
Reference in New Issue
Block a user