Giter Site home page Giter Site logo

Comments (3)

alexdelprete avatar alexdelprete commented on August 26, 2024

You should not unload the integration in the evening, leave it working, you will have a warning when the inverter goes offline, then HA retries to reconnect quietly, without any entry in the log, since I'm using DataCoordinator that handles this scenario automatically.

Have you tried "disabling" the integration from HA? does it give you an error?

from ha-abb-powerone-pvi-sunspec.

woodrook avatar woodrook commented on August 26, 2024

Ok Alex, i've removed spook automation, let's see.......thank you for your reply.

Manual disabling require a HA reboot to completely disable ABB integration. After that the integration could be enabled without any problem.

Thanks

from ha-abb-powerone-pvi-sunspec.

alexdelprete avatar alexdelprete commented on August 26, 2024

Nope. I used Spook in the past to enable/disable the integration on the fly, before I implemented DataCoordinator, because it spammed the log. No need to restart HA.

This was the automation to disable/enable it on VSN300 disconnect:

alias: State of ABB Custom Component
description: >-
  Ensure ABB Component is running in the morning and disable it at sunset to
  avoid filling log with errors
trigger:
  - platform: state
    id: trigger_abb_vsn300_connected
    entity_id:
      - binary_sensor.ping_sensor_abb_vsn300
    from: "off"
    to: "on"
    for:
      hours: 0
      minutes: 0
      seconds: 20
  - platform: state
    id: trigger_abb_vsn300_disconnected
    entity_id:
      - binary_sensor.ping_sensor_abb_vsn300
    from: "on"
    to: "off"
    for:
      hours: 0
      minutes: 0
      seconds: 20
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: trigger_abb_vsn300_connected
        sequence:
          - service: homeassistant.enable_config_entry
            data:
              config_entry_id: 54dcc9b0ac601ef0a7d78ebcd861cc76
          - service: homeassistant.reload_config_entry
            data: {}
            target:
              device_id: ab0bea32218dfd580d560e46fc85c722
      - conditions:
          - condition: trigger
            id: trigger_abb_vsn300_disconnected
        sequence:
          - service: homeassistant.disable_config_entry
            data:
              config_entry_id: 54dcc9b0ac601ef0a7d78ebcd861cc76
mode: single

Anyway, like I said, don't disable it, there's no need.

from ha-abb-powerone-pvi-sunspec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.