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

Ability to get/set schedules for devices #8

Closed
asantaga opened this issue Jan 14, 2020 · 2 comments
Closed

Ability to get/set schedules for devices #8

asantaga opened this issue Jan 14, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@asantaga
Copy link
Owner

Based on comments by @scooper1 asantaga/wiserHomeAssistantPlatform#46

it would be nice to have the ability to set schedules for devices. This would allow rather clever automation from products such as Home assistant, node-red etc and if the wiser app stops working then we could implement an alternative app..

Data for schedules is available from REST GET data/domain/Schedule/{scheduleid}

Shouldnt be too hard to create a service function which is simply get/set schedule for which HA could then use

@msp1974
Copy link
Collaborator

msp1974 commented Jan 14, 2020

I was thinking that the api should require the schedule to be in json format. This way we can keep it light and not have to deal with converting from yaml but just push the provided json file in a patch request.

However, in HA we should use a yaml file as
A) it is more standard to HA
B) HA already has a lot of built in fu ctio s we can use to process this file.

What's the thoughts?

@asantaga
Copy link
Owner Author

Resolved with PR9 from msp1974 (thanks Mark!),

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

No branches or pull requests

2 participants