Created
January 21, 2024 22:41
-
-
Save glenrobertson/0e09261480650b2012d9a96aa7651c7c to your computer and use it in GitHub Desktop.
Blink gym capacity home assistant sensor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rest: | |
- resource: https://api.sls.blinkfitness.com/moso-api/activities/whoischeckedin?facilityId=FIND_THIS_ON_GYM_PAGE_getPriceByFacilityId_REQUEST_IN_WEB_INSPECTOR | |
scan_interval: 300 | |
headers: | |
Accept: '*/*' | |
Sec-Fetch-Site: same-site | |
Accept-Encoding: gzip, deflate, br | |
Sec-Fetch-Mode: cors | |
Accept-Language: en-US,en;q=0.9 | |
Origin: https://locations.blinkfitness.com | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15 | |
Connection: keep-alive | |
Referer: https://locations.blinkfitness.com/ | |
Host: api.sls.blinkfitness.com | |
Sec-Fetch-Dest: empty | |
x-api-key: THIS_EXERCISE_IS_LEFT_TO_THE_READER | |
sensor: | |
- name: blink_checked_in | |
value_template: "{{ value_json.info.CurrentlyCheckedIn }}" | |
- name: blink_club_capacity | |
value_template: "{{ value_json.info.ClubCapacity }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment