From: David Woodhouse Date: Sat, 28 Sep 2024 09:24:59 +0000 (+0100) Subject: BK7231 IPv6 support, hbridge, and BL0942 fixes X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bd3f57f45a7029e29e0466e0645ed8b60ddc903a;p=users%2Fdwmw2%2Fesp32-pool.git BK7231 IPv6 support, hbridge, and BL0942 fixes --- diff --git a/tongou.yaml b/tongou.yaml index eb8fb44..99b578a 100644 --- a/tongou.yaml +++ b/tongou.yaml @@ -17,6 +17,12 @@ packages: logger: level: DEBUG +network: + enable_ipv6: true + +#syslog: +# ip_address: !secret syslog_ip + mqtt: on_connect: then: @@ -55,35 +61,24 @@ binary_sensor: switch: - platform: gpio - internal: true - pin: P24 - id: relay_on - restore_mode: ALWAYS_OFF - - platform: gpio - internal: true - pin: P26 - id: relay_off - restore_mode: ALWAYS_OFF - - platform: gpio + id: relay_led pin: number: P9 inverted: true + internal: true + - platform: hbridge + on_pin: P24 + off_pin: P26 id: relay name: Relay # On by default should be fine as this is not a safety device restore_mode: RESTORE_DEFAULT_ON on_turn_on: then: - - switch.turn_off: relay_off - - switch.turn_on: relay_on - - delay: 100ms - - switch.turn_off: relay_on + - switch.turn_on: relay_led on_turn_off: then: - - switch.turn_off: relay_on - - switch.turn_on: relay_off - - delay: 100ms - - switch.turn_off: relay_off + - switch.turn_off: relay_led uart: id: uart_bus @@ -101,6 +96,7 @@ sensor: line_frequency: 50Hz address: 0 update_interval: 20s + reset: false current: name: ${tongou_name} Current voltage: @@ -113,7 +109,6 @@ sensor: name: ${tongou_name} Energy frequency: name: ${tongou_name} Frequency - accuracy_decimals: 2 voltage_reference: ${voltage_ref} current_reference: ${current_ref} power_reference: ${power_ref}