mirror of
https://github.com/KinDR007/VictronMPPT-ESPHOME.git
synced 2024-10-21 07:09:27 +00:00
Fix firmware version sensor of the BlueSmart example configuration (#163)
This commit is contained in:
parent
b69eee6898
commit
cb386ac5bb
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -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: |
|
||||
|
@ -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"
|
||||
|
67
bluesmart-charger-esp8266-example.yaml
Normal file
67
bluesmart-charger-esp8266-example.yaml
Normal 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"
|
Loading…
Reference in New Issue
Block a user