vwt12eh8 / hassio-ecoflow

EcoFlow Portable Power Station Integration for Home Assistant
MIT License
224 stars 36 forks source link

River - Input Entity + Input Not Powered Trigger - False Alerts? #29

Open jiriteach opened 1 year ago

jiriteach commented 1 year ago

Hi - I am using the latest version 2.2.3 and still seeing false alerts with the input entity and the trigger for input not powered. See the screenshot.

This device is on bypass and I know input power was not lost so not sure why I am seeing these? Any ideas?

Thanks

Screen Shot 2022-08-03 at 12 10 21

vwt12eh8 commented 1 year ago

became unavailable means that the connection to the device has been lost. Unlike undetected, it does not mean that the input is turned off.

I'm sure I've fixed the problem with the connection becoming unavailable before, but if it's recurring, I'll need to investigate...

jiriteach commented 1 year ago

Thanks and good to know. I monitor uptime on the River's via my monitoring tools and havent noticed any drops but I will keep an eye on this.

The trigger for input not powered shouldnt fire for become unavailable though right?

vwt12eh8 commented 1 year ago

Yes, When there is really no input, the state should be off, not unavailable.

jiriteach commented 1 year ago

Ok - after some testing I can confirm that the trigger for input not powered is firing if network connectivity drops (ie. the River drops off wifi).

This should not be happenning as its false alert since actual power has not dropped. So looks like a bug. Thanks

vwt12eh8 commented 1 year ago

Are you sure you didn't set the warning condition to state ! = 'on'? To make it work correctly, you need to set either state == 'off' or state ! = 'on' and state ! = 'unavailable'.

jiriteach commented 1 year ago

Are you sure you didn't set the warning condition to state ! = 'on'?

To make it work correctly, you need to set either state == 'off' or state ! = 'on' and state ! = 'unavailable'.

Am using the provided trigger as follows. Perhaps I should set a duration in there.

image

vwt12eh8 commented 1 year ago

Perhaps that device trigger internally uses state ! = 'on' and not expecting unavailable.

It's a bit more challenging, but I think you can ignore unavailable by setting the trigger type to State.

image

trigger:
  - platform: state
    entity_id:
      - binary_sensor.river_******_input
    to: "off"
vwt12eh8 commented 1 year ago

Note that a device is considered disconnected when it has not sent any data for 15 consecutive seconds.

jiriteach commented 1 year ago

Note that a device is considered disconnected when it has not sent any data for 15 consecutive seconds.

Good to know! Have set a duration longer than 30 sec so it will wait so should work well. Thanks

jiriteach commented 1 year ago

So even with the delays, still getting lots of alerts and pretty confident the devices are not disconnecting from wifi so - I have now changed my automations to use a state trigger as you have suggested and will see how this goes.