1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

Adding tests

This commit is contained in:
Thierry DUVERNOY 2025-01-17 13:59:57 +01:00
parent a2c1a709f3
commit a15cccba35
8 changed files with 42 additions and 1 deletions

View File

@ -306,7 +306,7 @@ bool DallasPio::ds2406_get_state_(uint8_t &state, bool use_crc = false) {
ESP_LOGD(TAG,
"Got %s pio_flipflop=%d, pio_sensed_level=%d, "
"pio_activity_latch=%d",
str_pio, pio_sensed_level, pio_activity_latch);
str_pio, pio_flipflop, pio_sensed_level, pio_activity_latch);
if (pio_flipflop == 0) {
ESP_LOGW(TAG, "DallasPio DS2406 PIO flipflop must be 1 to read %s", str_pio);
this->status_set_warning();

View File

@ -0,0 +1,35 @@
one_wire:
- platform: gpio
pin: GPIO0
id: OnWireBus1
dallas_pio:
- name: DS2413 IC1
id: ds2413_ic1
reference: DS2413
address: 0xfe10055073e122ba
one_wire_id: OnWireBus1
binary_sensor:
- platform: dallas_pio
name: DS2413 Binary Sensor
dallas_pio_id: ds2413_ic1
id: ds2413_binary_sensor
pin:
number: PIOA
mode:
input: true
inverted: true
update_interval: 1s
switch:
- platform: dallas_pio
name: DS2413 Switch
dallas_pio_id: ds2413_ic1
id: ds2413_switch
pin:
number: PIOB
mode:
output: true
inverted: false
inverted: false

View File

@ -0,0 +1 @@
<<: !include common.yaml

View File

@ -0,0 +1 @@
<<: !include common.yaml

View File

@ -0,0 +1 @@
<<: !include common.yaml

View File

@ -0,0 +1 @@
<<: !include common.yaml

View File

@ -0,0 +1 @@
<<: !include common.yaml

View File

@ -0,0 +1 @@
<<: !include common.yaml