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

Set value for ''Max grid shave power'' from ESP32 #30

Open
Vali7719 opened this issue Feb 9, 2024 · 0 comments
Open

Set value for ''Max grid shave power'' from ESP32 #30

Vali7719 opened this issue Feb 9, 2024 · 0 comments

Comments

@Vali7719
Copy link

Vali7719 commented Feb 9, 2024

Hi.
First of all I would like to thank you for your work - it really helped me to make some nice automations in Home Assistant.

I'm trying to change Max grid shave power directly from ESPHome on ESP32 without Home Assistant (where with automations this works without any issues).

My simple code is:
`time:

  • platform: homeassistant
    id: homeassistant_time

    on_time:

    • seconds: 0
      minutes: 30
      hours: 7
      days_of_week: MON-FRI
      then:
      lambda: |-
      id(sun12k_max_grid_shave_power).publish_state(8000);
    • seconds: 0
      minutes: 50
      hours: 3
      days_of_week: MON-FRI
      then:
      lambda: |-
      id(sun12k_max_grid_shave_power).publish_state(10000);`

The problem is that value 8000 (or 10000 at 3hr50min) is set for only couple of second and will then be turned back to value set before that time (set on Deye like lets say 12000).

How can I set value that remain same until at different time different value is set?
Thank you and best regards.
Bogdan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant