-
Notifications
You must be signed in to change notification settings - Fork 16
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
Documentation request: How to call services for the light and media #33
Comments
I had a thought today to pull the different values from the device when it was in different favorite states (Rest+ v1). After looking them over I think I have the correct services and values to manipulate. How does the below look?
Here are the values I've pulled so far for the basic colors (that we use) from the app:
I hope to add these services and possibly even the light values to the README for others to reference if/when they need to. |
How do I turn on the 'rainbow' light color that's supported by the Rest+? Do I need to use some sort of animation? |
@dvhub you can use an automation to cycle, the built in random function is currently not supported; though it is already available in the rest+ first gen python api interface so should be a simple enough thing to add, hard part would be finding a reasonable way to expose it through ha I'm closing this as the Intecpsp answered their own question already |
I don't mind hacking my local ha_hatch python code to get it working for me, but I see in the hatch_rest_api that rest_plus.set_color assumes that c.R (random) is False. How do you suggest setting c.R to True? I did some research and it looks like the 'correct' way to do this is with LightEntity effect_list and effect but I believe this would be a fairly substantial change. Would it be reasonable to expose 'random' light color as a service call as a way to expose it in HA? |
I've exposed things with service calls in past integrations and found most people can't handle them well. Better to expose a simple SwitchEntity. I exposed an optional param to set the random effect on set_color in hatch_rest_api 1.22.0 |
That's great. Thank you very much! |
Could you update the documentation with examples of how to control the Hatch from Home Assistant? There are many media services that could be used, and each has its own parameters. Then with the light, I see lots of options as well. What services and values are able to be used?
The text was updated successfully, but these errors were encountered: