Last active
July 12, 2023 12:49
-
-
Save JBoye/3df5008a83c43a21b26d870e7e654e0a to your computer and use it in GitHub Desktop.
Charge Finder
This file contains hidden or 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
sensor: | |
- platform: rest | |
name: Clever Aarhus Havn | |
resource: https://api.chargefinder.com/status/pjyd79 | |
scan_interval: 120 | |
value_template: '{{ value_json|selectattr("status", "eq", 2)|list|length }}' | |
headers: | |
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.59 | |
origin: https://chargefinder.com |
@danielolsson100 Can you try the updated version (with origin: https://chargefinder.com)?
@danielolsson100 Can you try the updated version (with origin: https://chargefinder.com)?
Yes I have already found the issue and posted a solution for it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code need some minor changes. This works for me.