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

ESP8266 #80

Closed dowermyr closed 1 year ago

dowermyr commented 1 year ago

I get this message when trying to flash:

INFO Reading configuration /config/esphome/inverter-l1.yaml... INFO Updating https://github.com/syssi/esphome-soyosource-gtn-virtual-meter.git@main Failed config

soyosource_virtual_meter: [source /config/esphome/inverter-l1.yaml:54]

syssi commented 1 year ago

Could you provide your inverter-l1.yaml? It looks like there is no sensor with a powermeter identifier anymore.

dowermyr commented 1 year ago

Ah, thats true! I removed the mqqt and activated api. But must have made something wrong. Do you have an example with api instead of mqqt ?

syssi commented 1 year ago

You can subscribe to HA entities using the homeassistant sensor component:

sensor:
 - platform: homeassistant
   id: powermeter
   name: "${name} smartmeter instantaneous power"
   entity_id: sensor.firstfloor_smartmeter_instantaneous_power
   filters:
     - throttle_average: 15s
dowermyr commented 1 year ago

of course, missed those lines. Thanks!

syssi commented 1 year ago

Feel free to close the issue if it's solved.