Bouni / luxtronik

Luxtronik integration for Home Assistant
MIT License
82 stars 13 forks source link

Error: [invert] is an invalid option for [sensor.luxtronik] #58

Closed mfmayer closed 1 year ago

mfmayer commented 1 year ago

ID_WEB_EVUin seems to be an inverted boolean signal, which I tried to invert with the mentioned option "invert: true":

      - group: calculations
        id: ID_WEB_EVUin
        friendly_name: WP EVU Sperre
        invert: true

Unfortunately this doesn't seem to work and I'm always getting this error: ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.luxtronik]: [invert] is an invalid option for [sensor.luxtronik].

Luxtronic Version: 2022.12.02 Home Assistant Version: 2022.12.7

PS: @Bouni: amazing integration, thank you so much for this! Going now to find out how to buy you a ko-fi 😉

mfmayer commented 1 year ago

I've found the problem. Binary sensors must be added below binary_sensor property and not sensor property:

binary_sensor:
  - platform: luxtronik
    sensors:
      - group: calculations
        id: ID_WEB_EVUin
        friendly_name: WP EVU Sperre
        invert: true
Bouni commented 1 year ago

Glad you solved the issue yourself 😅