-
Notifications
You must be signed in to change notification settings - Fork 80
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
Error rendering data template: UndefinedError: 'dict object' has no attribute 'json' when trying to run Kindle battery blueprint #75
Comments
Hey, thanks for the feedback. I don't use the webhook myself, so I cannot directly assist and test it. However, I took a guess how to fix it. I would appreciate if you could verify the change by using the following blueprint: Direct Blueprint URL: https://github.com/sibbl/hass-lovelace-kindle-screensaver/blob/8778b4103e498f76d024e5791504ae023f21fd15/battery_sensor_blueprint.yaml HA import link of this Blueprint: https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2Fsibbl%2Fhass-lovelace-kindle-screensaver%2Fblob%2F8778b4103e498f76d024e5791504ae023f21fd15%2Fbattery_sensor_blueprint.yaml |
Thank you! The new blueprint gave me the following error:
So I am still unable to pull the battery life from the Kindle into HA. |
Hi, I have gone through the setup again and ensured that the batteryLevel code is correct on my Kindle, but I am still encountering the same error. Do you have any other ideas for what could be the fix? |
Hi! I managed to get the battery level webhook to update the input_value once by setting up a new automation:
But then the automation stopped updating and went back to returning the same error as above :/ Edit: It looks like it might be updating now. I was trying to test the automation rather than letting the webhook receive a payload, and that was causing it to error. |
I tried @sibbl 's updated blueprint but still seeing kindle_battery_level is always 0 and never gets updated. Fetching images is working fine.
update.sh has this in it:
and my automation is the same as the one @TomAnks created. (webhook_id obfuscated)
I tried turning local_only to false but that didn't seem to help either. |
Not sure what I am doing wrong here, but I am receiving the above error when trying to run the automation to fetch the battery level of the Kindle.
I have:
This means that I am unable to run the automation as it errors every time. Can anyone assist?
The text was updated successfully, but these errors were encountered: