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

[Improvement] Electricity Consumption as End Position Sensor #20

Open
bzumik1 opened this issue Nov 28, 2023 · 2 comments
Open

[Improvement] Electricity Consumption as End Position Sensor #20

bzumik1 opened this issue Nov 28, 2023 · 2 comments

Comments

@bzumik1
Copy link

bzumik1 commented Nov 28, 2023

Hello, I'm considering the use of a Sonoff device with electricity consumption monitoring capabilities. My intention is to utilize this feature for automatic calibration and as an endpoint indicator, particularly when the blind reaches its end position. I'm unsure if this aligns with your perspective and if it even would be usable. The cost difference between the version with power consumption measurement and the one without is approximately 1-2 dollars. I'd really appreciate your insights on whether this choice makes sense.

@bzumik1 bzumik1 changed the title [Improvement] Electricity Consumption as End Sensor [Improvement] Electricity Consumption as End Position Sensor Nov 28, 2023
@bzumik1
Copy link
Author

bzumik1 commented Nov 30, 2023

I have just found out that that is actually what sonoff is doing. It would be really nice to add this feature. I will be happy to help with testing if someone will add it.

@bzumik1
Copy link
Author

bzumik1 commented Jun 21, 2024

I was thinking about this onece again and it could look something like this

cover:
  - platform: venetian_blinds
    id: my_venetian_blinds
    open_action:
      # Open action configuration
    close_action:
      # Close action configuration
    stop_action:
      # Stop action configuration
    open_duration: 10s
    close_duration: 10s
    tilt_duration: 2s
    actuator_activation_duration: 1s
    assumed_state: true
    calibration_cycles: 5
    open_sensor: sensor1
    close_sensor: sensor2

In this configuration, the blinds would move up and down 5 times, and the time for the up and down movement would be calculated as the average of these motions. However, I am uncertain if this approach will be sufficiently precise. If the consumption can be measured quickly and accurately, we could also consider adding calibration for the tilt, as the consumption during tilting will be lower than when the blinds are fully moving up. Another idea is to implement stuck detection. If the sensor detects a higher load than usual, the blinds could stop, similar to the safety feature in standing desks.

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