DarwinsBuddy / WienerNetzeSmartmeter

A home-assistant integration supporting WienerNetze Smartmeters as sensors
144 stars 15 forks source link

Add new anlage-type 'STROM' in api/constants.py #252

Closed arookieuser closed 2 months ago

arookieuser commented 2 months ago

Similar to issue #244.

API response from https://api.wstw.at/gateway/WN_SMART_METER_PORTAL_API_B2C/1.0/zaehlpunkte, in my case, mentions anlage type as only STROM. constants.py does not have an entry for it. Saw TAGSTROM there, adding strom to the if condition resolved the error.

{ "anlage": { "typ": "STROM" } }