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

Setting a schedule for a MSS310 plug #306

Open
davidwozabal opened this issue Jul 17, 2023 · 4 comments
Open

Setting a schedule for a MSS310 plug #306

davidwozabal opened this issue Jul 17, 2023 · 4 comments
Labels
enhancement New feature or request no-stale

Comments

@davidwozabal
Copy link

Background: I have a contract with my power supplier where prices fluctuate hourly based on wholesale prices on the electricity exchange. I would therefore want to control certain devices (e.g., water heater) such that they switch on, when prices are low.

Intended solution: I would have to query next day's prices and then program the plugs with a corresponding schedule for the next day. Ideally, I want to connect to the device only once and then let the plugs execute the schedule on its own (without connecting every time I want to make a switch). It seems to me that the MSS310 plugs in principle support this functionality.

Question: Can such a function be implemented in the current version of the library? I only found methods to switch on/off instantaneously.

@stale
Copy link

stale bot commented Sep 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 16, 2023
@albertogeniola albertogeniola added no-stale enhancement New feature or request and removed stale labels Sep 16, 2023
@albertogeniola
Copy link
Owner

Hi!
Are you going to schedule this via python directly or are you going to use some sort of orchestrator, such as HomeAssistant?

Why wouldn't you implement this via python script/daemon running on the background?

@davidwozabal
Copy link
Author

Hi, I was thinking about scheduling this directly from a Python script, which is periodically called. However, I cannot guarantee that the machine that runs the job will be up the whole day. Hence, I would like to submit a schedule once a day to the plug which stores the schedule and then executes it autonomously without any further interaction from the script.

If I am not mistaken, the hardware of the MSS310 supports such a thing, but the library doesn't.

@Tkd-Alex
Copy link

Hi, I was thinking about scheduling this directly from a Python script, which is periodically called. However, I cannot guarantee that the machine that runs the job will be up the whole day. Hence, I would like to submit a schedule once a day to the plug which stores the schedule and then executes it autonomously without any further interaction from the script.

If I am not mistaken, the hardware of the MSS310 supports such a thing, but the library doesn't.

+1 for me, I've a little home lab that I would shutdown for example at 1:00 am

Every time my home lab is going to shutdown it should say to the plug to shutdown itself after x minutes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-stale
Projects
None yet
Development

No branches or pull requests

3 participants