Did you install the package using pip?
The package name is rituals-api why do you use import rituals instead of import rituals-api?
I can’t import rituals-api because it has a hyphen in the package name. It works using:
I made an integration which is installable using HACS (add it as a custom repository). It is found on:
A warning though, this is my first HomeAssistant integration . You provide the username and password (which are not stored), and then it allows to select the Genie you want to add. After that it should pop-up in your entities / devices. It should work with multiple Genies, but I only have one, so I haven’t tested that.
I’ve downloaded your integration using HACS and after rebooting Home Assistant it works perfectly. My Rituals Genie have stopped working with Home Assistant after some update but now it’s working again effortless. Thank you!
At the beginning the integration was working just fine but now I get errors getting and changing the state to on or off. Everything else works (sensors).
Can you help?
[548110694048] 'NoneType' object has no attribute 'get'
12:36:14 PM – Home Assistant WebSocket API (ERROR) - message first occurred at 10:27:52 AM and shows up 4 times
Error fetching information from https://rituals.sense-company.com/api/account/hub/4d59090d44a4fbdfb1edd7f541fc996064ab798f3ff579aac1af39cb115f8aeb - Cannot connect to host rituals.sense-company.com:443 ssl:default [Name does not resolve]
12:36:14 PM – Rituals Genie (ERROR) - message first occurred at February 5, 2021, 8:51:15 PM and shows up 694 times
Error doing job: Task exception was never retrieved
12:36:01 PM – custom_components/rituals_genie/switch.py (ERROR) - message first occurred at February 5, 2021, 8:51:15 PM and shows up 682 times
Hi João,
seems to me there is something wrong with your DNS resolving. Can you try and resolve rituals.sense-company.com? Try it from the Home Assistant server if you can.
Hi,
I am Milan @milanmeu, the developer of this core integration.
Thanks to everyone on this forum for the information about the API.
Here is a small overview of what to expect.
The core integration will only contain limited functionality in 2021.3 (4 March):
Switch entity to turn the fan on and off;
Room size and fan speed attributes.
I am working on the sensors for the core integration, these will be added in version 2021.4 (7 April).
I recommend the custom integration fred-oranje/rituals-genie if you want to use the sensors now.
More information on how to contribute translations can be found here.
It would be nice if someone could make an icon for the perfume diffuser so that we don’t have to use a fan blade. Contact me or open a PR if you made and uploaded an icon to Material Design Icons.
Same here. There was an update of the app. Probably things changed in the API like last time…
I tried the custom component but wasn’t able to set it up because it doesn’t recognise my user name and password I also use for the Perfume Genie app…
Rituals seems to have changed their SSL certificate. Python does not trust the issuer of the new SSL certificate by default. It is possible to trust the new publisher but this will require updating the library and integration. Aiohttp gives this error but this is not correct, read the updates.
I will edit this post when I have more information.
Update 3 Mar 19:05 CET
Python can talk to the API if I use certifi. Home Assistant core can’t talk to the API, even if we trust the certifi Root Certificates it does not work. I am confused?
Update 3 Mar 20:08 CET
Home Assistant 2021.3.0 released. The integration is now officially available.
Unfortunately, it doesn’t work.
Update 3 Mar 21:00 CET
When I change the request headers it seems to work. The custom integration header and headers containing Home Assistant are blocked. The servers seem to be blocking Home Assistant requests.
I know this is easy to solve, but I first want to contact sense-company/Rituals about this.
Update 3 Mar 23:05 CET
I am in contact with sense company (the company that develops this rituals device). They are very helpful and answer quickly even after office hours. Home Assistant is blocked by the API because we are making too many requests. They are working on a solution so they can throttle requests if you exceed a limit.
I just received an email from Sense company that Home Assistant has been unblocked. I have briefly tested the integration and it seems to work again. More information in GitHub issue #47321.
My wife got a Genie v2 for her birthday (obviously, the choice for this device had nothing to do with this HA integration ) and I just had a look in the app with her.
Perfume strength (speedc in the api) changes the speed of the fan. Do you know what room size does, is it useful to integrate it into home assistant?
I think that “perfume strength” in the app is somewhat misleading, as it indeed is modifying the fan speed only. That being said, I do believe that the “room size” setting is the actual ‘perfume strength’ as we would call it: the bigger the room the more perfume is needed, of course.
For the use case “little bit perfume in the morning, a bit more after dinner” being able to set both values would be beneficial, I presume. I know that Sense has been helpful before, they might be able to help you out here as well understanding the two settings?
I’ll install the sensor PR as custom_component tomorrow to test it and report back.