Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Utilities ― Line Direction only works for Groups 1 & 2 #1964

Closed
finch6 opened this issue Mar 22, 2024 · 6 comments
Closed

Page Utilities ― Line Direction only works for Groups 1 & 2 #1964

finch6 opened this issue Mar 22, 2024 · 6 comments
Labels
Bug Identifies an issue where the system is not functioning as expected. Page: utilities Concerns specific to the page's interface or functionality.

Comments

@finch6
Copy link

finch6 commented Mar 22, 2024

TFT Version

4.3.1

ESPHome Version

4.3.1

Blueprint Version

4.3.1

Panel Model

US

What is the bug?

The Line Direction indicator only works for Groups 1 & 2.
It doesn't work for any of the other Groups (3,4,5 or 6) and I also can't get it working for the Main Line Direction either.

Even if I use and entity from Group 1 or 2, that I know works, to the Line Direction Reference, its doesn't make any of the other groups or main line indicator work.

My Groups:
Group 1 ― House
Group 2 ― Flat
Group 3 ― Grid
Group 4 ― No Used
Group 5 ― Battery
Group 6 ― Home

IMG_9595.MOV

Below is the Blueprint yaml ― you can see that I have set all of the Groups Line Direction Reference to sensor.sunsynk_pv_power_1, yet only Group 1 & 2 show movement.

Steps to Reproduce

No response

Your Panel's YAML

utilities_enabled: true
    utilities_page01_grid_label: Solar
    utilities_page01_grid_icon: mdi:solar-power
    utilities_page01_grid_value1: sensor.sunsynk_pv_power
    utilities_page01_grid_value2: sensor.sunsynk_pv_energy
    utilities_page01_grid_color:
      - 255
      - 170
      - 0
    utilities_page01_home_label: SunSynk
    utilities_page01_home_icon: mdi:meter-electric-outline
    utilities_page01_home_value1: sensor.sunsynk_load_power
    utilities_page01_home_value2: sensor.sunsynk_temperature
    utilities_page01_group01_label: House
    utilities_page01_group01_icon: mdi:solar-power-variant
    utilities_page01_group01_value1: sensor.sunsynk_pv_power_1
    utilities_page01_group01_value2: sensor.sunsynk_pv_current_1
    utilities_page01_group01_color:
      - 255
      - 170
      - 0
    utilities_page01_group01_line_reference: sensor.sunsynk_pv_power_1
    utilities_page01_group02_label: Flat
    utilities_page01_group02_icon: mdi:solar-power-variant
    utilities_page01_group02_value1: sensor.sunsynk_pv_power_2
    utilities_page01_group02_value2: sensor.sunsynk_pv_current_2
    utilities_page01_group02_color:
      - 255
      - 170
      - 0
    utilities_page01_group02_line_inverted: true
    utilities_page01_group02_line_reference: sensor.sunsynk_pv_power_2
    utilities_page01_group03_label: Grid
    utilities_page01_group03_icon: mdi:transmission-tower
    utilities_page01_group03_value1: sensor.sunsynk_grid_power_ct
    utilities_page01_group03_value2: sensor.sunsynk_grid_energy_in
    utilities_page01_group03_color:
      - 58
      - 136
      - 254
    utilities_page01_group03_line_reference: sensor.sunsynk_pv_power_1
    utilities_page01_group05_label: Battery
    utilities_page01_group05_icon: mdi:home-battery-outline
    utilities_page01_group05_value1: sensor.sunsynk_battery_state_of_charge
    utilities_page01_group05_value2: sensor.sunsynk_battery_power
    utilities_page01_group05_color:
      - 255
      - 106
      - 0
    utilities_page01_group05_line_inverted: false
    utilities_page01_group05_line_reference: sensor.sunsynk_pv_power_1
    utilities_page01_group06_label: Home
    utilities_page01_group06_icon: mdi:home-lightning-bolt-outline
    utilities_page01_group06_value1: sensor.sunsynk_load_power_essential
    utilities_page01_group06_value2: sensor.sunsynk_load_energy
    utilities_page01_group06_color:
      - 0
      - 199
      - 252
    utilities_page01_group06_line_reference: sensor.sunsynk_load_power
    utilities_page01_main_line_reference: sensor.sunsynk_pv_power_1
    utilities_page01_main_line_inverted: false

ESPHome Logs

No response

Home Assistant Logs

No response

@finch6 finch6 added the Bug Identifies an issue where the system is not functioning as expected. label Mar 22, 2024
@edwardtfn edwardtfn added the Page: utilities Concerns specific to the page's interface or functionality. label Mar 22, 2024
@edwardtfn edwardtfn added this to the v4.3.2 - Patch milestone Mar 22, 2024
@edwardtfn
Copy link
Collaborator

Do you have any error message related to this automation on your Home Assistant logs?

@finch6
Copy link
Author

finch6 commented Mar 22, 2024

Hi @edwardtfn,

There is this error ― completely forgot to look here in the beginning 🤦🏼‍♂️

Logger: homeassistant.components.automation.nspanel_update
Source: helpers/script.py:1805
integration: Automation (documentation, issues)
First occurred: 16:00:33 (22 occurrences)
Last logged: 16:30:22

NSPanel Update: Maximum number of runs exceeded

When I checked first it said 16 occurrences and the last was at 16:00. Went to the panel, opened the Utilities Page, back to the Home Screen and then opened the Utilities Page again. Second time I opened it it took a while to load the "artifacts".
Now its on 22... That would make sense for the 3 lines that aren't moving (opened twice so 6 more occurrences were added)? If I understand it correctly?

Screenshot 2024-03-22 at 16 31 49

@edwardtfn
Copy link
Collaborator

It's good that you shared this message. I will have to investigate it.
The system limits to 50 concurrent instances of the Blueprint running. That was a huge number, we never expected to see this message, which shows something is starting with the blueprint but it is taking to log to finish, either due to some slowness or some wait that never triggers.
I don't remember of any wait on the utilities page and wouldn't expect multiple calls to construct that page, so I don't think this message is related to that. Unless something is too slow when building the other lines.
I will investigate this.

@finch6
Copy link
Author

finch6 commented Mar 22, 2024

I will play around with this tomorrow and clear the Home Assistant logs and then access the Utilities Page again on the NSPanel.

@edwardtfn
Copy link
Collaborator

Quick question... how often those sensors used in the utilities dashboard updates their values?

edwardtfn added a commit that referenced this issue Mar 25, 2024
From 20Hz to 6.7Hz.
Helps with #1964
edwardtfn added a commit that referenced this issue Mar 26, 2024
To compensate the lower refresh rate and keep the same speed, although it might look a bit odd. To be tested.
Helps with #1964
@edwardtfn
Copy link
Collaborator

I believe this is fixed in dev. That will be released soon.

edwardtfn added a commit that referenced this issue Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Identifies an issue where the system is not functioning as expected. Page: utilities Concerns specific to the page's interface or functionality.
Projects
None yet
Development

No branches or pull requests

2 participants