syssi / esphome-soyosource-gtn-virtual-meter

ESPHome component to simulate the current clamp to control the Soyosource GTN1200 limiter
Apache License 2.0
76 stars 21 forks source link

Unable to compile "esp8266-display-example.yaml" #69

Closed senfkorn closed 1 year ago

senfkorn commented 1 year ago

Hi,

I've a problem with compiling the "esp8266-display-example.yaml"

It says there is something with the select component:

src/esphome/components/soyosource_display/select/soyosource_select.cpp: In lambda function: src/esphome/components/soyosource_display/select/soyosource_select.cpp:19:24: error: 'class esphome::soyosource_display::SoyosourceSelect' has no member named 'at' 19 | auto value = this->at(mapping_idx);

src/esphome/components/soyosource_display/select/soyosource_select.cpp: In member function 'virtual void esphome::soyosource_display::SoyosourceSelect::control(const string&)': src/esphome/components/soyosource_display/select/soyosource_select.cpp:35:20: error: 'class esphome::soyosource_display::SoyosourceSelect' has no member named 'index_of' 35 | auto idx = this->index_of(value);

image

syssi commented 1 year ago

Could you provide some details about your build host (Linux distribution, g++ version, ESPHome version)? In general the CI is able to build the project.

syssi commented 1 year ago

The index_of property was introduced at ESPHome 2022.5. An ESPHome update should fix the issue. I will update the minimum required ESPHome version at the README.

senfkorn commented 1 year ago

Hi,

this is my current setup:

Add-on version: 2022.3.1 You are running the latest version of this add-on. System: Debian GNU/Linux 11 (bullseye) (amd64 / qemux86-64) Home Assistant Core: 2022.8.1 Home Assistant Supervisor: 2022.07.0

i'll have a look for updating my esphome

syssi commented 1 year ago

I assume you have to switch to the official esphome add-on. See https://esphome.io/changelog/2022.4.0.html#home-assistant-addon-repo

senfkorn commented 1 year ago

Thanks for the help, you are really everywhere :)

I wasn't aware, that I've to change the esp addon. It's working

Thanks again

syssi commented 1 year ago

The next touch point will be your solar charger. ;-) Which device did you buy?

senfkorn commented 1 year ago

Victron MPPT's

But they are working flawlessly.

My next point to tackle is the IR reader for the powermeter.

here's a pic of my current constellation:

WhatsApp Image 2022-08-07 at 14 52 09

syssi commented 1 year ago

Nice setup! Please keep in mind: The esp8266-display-example.yaml is the example configuration for generic ESP8266 (plus a logic level shifter) attached to the display port. The esp8266-wifi-dongle-example.yaml is the alternative firmware for the WiFi dongle. I'm saying this because you should be aware of the 5V TTL of the display port.

senfkorn commented 1 year ago

right now I'm trying to use the WiFi dongle to output the rs485 for the limiter signal. It was working until I fried the RS232 to RS485 converter board by building it compact and touch both boards together. Tomorrow the new ones are coming in.

syssi commented 1 year ago

Shit happens. I hope you didn't fried the internal RS485 converter of the Soyosource too. The replacement board is a bit expensive.

senfkorn commented 1 year ago

I've checked it already with to original power clamp and it still works.

Shouldn't I ask why you know how expensive these boards are? ;)

syssi commented 1 year ago

You are on the right track: I fried my "RS485 layer" too (once) and I was pretty happy about this "modular" setup. So I was able replace the fried components/modules only.

senfkorn commented 1 year ago

does something speak against using the inverter in "battery constant power mode" and the writing the "output power limit" number with my desired power?

I'm right now testing this configuration and it seems to work.

Any concerns?

syssi commented 1 year ago

The only concern: Updating the inverter setting very often will destroy the flash memory (of the inverters STM32) some day because of the limited number of write cycles.

senfkorn commented 1 year ago

OK, thats a good point.

So, I'll wait for the RS485 modules and do it the right way