Get information about upcoming OhmHour events in Home Assistant.
With this integration, you can access the scheduled start and end times of the next upcoming OhmHour event, along with the total duration of the event.
- Ensure HACS is installed in your Home Assistant setup.
- Go to HACS and add this repository to the list of custom repositories.
- Search for and install the "OhmConnect Event" integration from HACS.
- Open the directory for your Home Assistant configuration (this is where the
configuration.yaml
file is located). - Check if there is a
custom_components
folder. If it doesn't exist, create one. - Inside the
custom_components
folder, create a new folder calledohmconnect-event
. - Download the
ohmconnect-event.zip
file from the "Latest Release" section of this repository. - Extract the contents of the downloaded ZIP file into the
ohmconnect-event
folder you created.
In your configuration.yaml, add
sensor:
- platform: ohmconnect-event
session: !secret ohmconnect_event_session
ohm_track_key: !secret ohmconnect_event_track_key
In your secrets.yaml, add
ohmconnect_event_session: "YOUR_SESSION_KEY"
ohmconnect_event_track_key: "YOUR_TRACK_KEY"
- Login to OhmConnect if you are not already.
- Open https://login.ohmconnect.com/api/v2/upcoming_events.
- Open your browser’s developer tools (right-click and select "Inspect", or press
F12
). - Navigate to the "Network" tab.
- Refresh the page to capture the network activity.
- Look for the
GET
request to the/upcoming_events
endpoint. - Click on the request, then go to the
Headers
section. - Under the
Request Headers
, find theCookie:
field. - In the
Cookie
field, locate your session key (found aftersession=
) and the track key (found afterohm_track_key=
).