Fix firmware version sensor of the BlueSmart example configuration (#163)

This commit is contained in:
Sebastian Muszynski 2024-06-09 17:53:14 +02:00 committed by GitHub
parent b69eee6898
commit cb386ac5bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 72 additions and 6 deletions

View File

@ -189,6 +189,7 @@ jobs:
run: 'echo -e "wifi_ssid: ssid\nwifi_password: password\nmqtt_host: host\nmqtt_username: username\nmqtt_password: password" > secrets.yaml; cp secrets.yaml tests'
- run: |
esphome -s external_components_source components config bluesmart-charger-esp32-example.yaml
esphome -s external_components_source components config bluesmart-charger-esp8266-example.yaml
- run: |
esphome -s external_components_source components config smartsolar-mppt-esp8266-example.yaml
- run: |
@ -253,6 +254,7 @@ jobs:
run: 'echo -e "wifi_ssid: ssid\nwifi_password: password\nmqtt_host: host\nmqtt_username: username\nmqtt_password: password" > secrets.yaml'
- run: |
esphome -s external_components_source components compile bluesmart-charger-esp32-example.yaml
# esphome -s external_components_source components config bluesmart-charger-esp8266-example.yaml
- run: |
esphome -s external_components_source components compile smartsolar-mppt-esp8266-example.yaml
- run: |

View File

@ -7,8 +7,6 @@ esphome:
esp32:
board: esp32dev
framework:
type: arduino
external_components:
- source: ${external_components_source}
@ -42,7 +40,6 @@ victron:
id: victron0
throttle: 10s
sensor:
- platform: victron
victron_id: victron0
@ -60,8 +57,8 @@ text_sensor:
victron_id: victron0
device_type:
name: "${name} device type"
firmware_version:
name: "${name} Firmware Version"
firmware_version_24bit:
name: "${name} firmware version"
serial_number:
name: "${name} serial number"
hardware_revision:
@ -69,4 +66,4 @@ text_sensor:
error:
name: "${name} error"
charging_mode:
name: "${name} Charging mode"
name: "${name} charging mode"

View File

@ -0,0 +1,67 @@
substitutions:
name: bluesmart-charger
external_components_source: github://KinDR007/VictronMPPT-ESPHOME@main
esphome:
name: ${name}
platform: ESP8266
board: d1_mini
external_components:
- source: ${external_components_source}
refresh: 0s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ota:
# api:
logger:
mqtt:
broker: !secret mqtt_host
username: !secret mqtt_username
password: !secret mqtt_password
id: mqtt_client
uart:
id: uart_0
tx_pin: D8 # Not connected! The communication is read-only
rx_pin: D7 # Connect this this GPIO and GND to the MPPT charger
baud_rate: 19200
rx_buffer_size: 256
victron:
uart_id: uart_0
id: victron0
throttle: 10s
sensor:
- platform: victron
victron_id: victron0
battery_voltage:
name: "${name} output voltage"
battery_current:
name: "${name} current"
error_code:
name: "${name} error code"
charging_mode_id:
name: "${name} mode id"
text_sensor:
- platform: victron
victron_id: victron0
device_type:
name: "${name} device type"
firmware_version_24bit:
name: "${name} firmware version"
serial_number:
name: "${name} serial number"
hardware_revision:
name: "${name} hardware number"
error:
name: "${name} error"
charging_mode:
name: "${name} charging mode"