tijsverkoyen / HomeAssistant-FusionSolar

Integrate FusionSolar into your Home Assistant.
MIT License
133 stars 25 forks source link

Alarms and automation #90

Closed kzajac83 closed 1 year ago

kzajac83 commented 1 year ago

Hello.

Fusion Solar add-on is working in HA, thank you for your work however I have issue with my physical inverter due to too high voltage in grid that cause shutdown.

In Fusion Solar portal for today I see this alarms:

image

image

In HA first of all I see two statuses

image

One is empty and second is:

image

What is strange do not see change about 13:01 in HA and missing shutdown status like form yesterday: image

I try build automation notification but not working, my current notification automation config is:

` alias: Powiadomienie inwerter XXXXXX Shutdown description: "" trigger:

I try build automation base on below status string of inverter but I general not working:

"changed to Shutdown: unexpected shutdown"

"Shutdown: unexpected shutdown"

"unexpected shutdown"

Due to I jump to dev in HA tool and found this:

image

and seems status in numerical valu, what should I use in my automation?

Summary

  1. It is possible download to HA Alarms?
  2. Why I do not see shutdown status of inverter for today? In Fusion Solar portal for yesterday and today status is the same - grid over-voltage but yesterday got shutdown status but today no?
  3. Do not see change status about 13:01 today (now is almost 14:00 when I write this and still no change status)
  4. It is possible that some statuses do not download to HA? How to check what status are visible in API for today? I'd like compare with HA statuses? Can ask for short instruction?
  5. How I can build notification about over-voltage / shutdown in HA? Should use string or numerical value?

BR, Krzysiek

tijsverkoyen commented 1 year ago

All data that is exposed through the following calls is available in HA, and is updated regularly

Note that this pulled from the API, and not pushed from the API to HA. So there can be delays, or missing information if the status changes between these intervals. For instance if the update is x:10, x:20, x:30, ... and the status changes at x:11 and changes back to another status at x:19, that won't be visible in HA.

You can find the status codes and their translation at: custom_components/fusion_solar/translations/en.json

All the information that is used to develop this integration comes from master/docs/imaster-neteco-v600r022c00-northbound-interface-reference-v6.pdf.

I think you will need to use the numerical values as the translations happen through the HA system, see Translating the state of entities for more information

tijsverkoyen commented 1 year ago

@kzajac83 was the information I gave clear? I will close this issue, but feel free to reopen the issue if needed.