Closed LuckyTriple7 closed 3 years ago
Hello, great Job ! I found 2 little Bugs in the YAML for Homeassistant:
correct is: icon: mdi:battery icon: mdi:current-dc
It is not necessary to connect GND. Only RX and TX need to be connected
With this extension, the load current is transmitted:
else if (label == "IL") { // In this case IL chose to read load current val.toCharArray(buf, sizeof(buf)); float floatValue = atof(buf); floatValue = floatValue / 1000; dtostrf(floatValue, len, 2, char_current); client.publish("Victron/Load current, I", char_current); }
My Homeassistant YAML Code:
sensor:
Hi, copy paste error sorry
Hello, great Job ! I found 2 little Bugs in the YAML for Homeassistant:
correct is: icon: mdi:battery icon: mdi:current-dc
It is not necessary to connect GND. Only RX and TX need to be connected
With this extension, the load current is transmitted:
else if (label == "IL") { // In this case IL chose to read load current val.toCharArray(buf, sizeof(buf)); float floatValue = atof(buf); floatValue = floatValue / 1000; dtostrf(floatValue, len, 2, char_current); client.publish("Victron/Load current, I", char_current); }
My Homeassistant YAML Code:
sensor:
unique_id: sensor.text.victron.panel.voltage
unit_of_measurement: "kWh"
unit_of_measurement: "kWh"
unit_of_measurement: "kWh"