-
Notifications
You must be signed in to change notification settings - Fork 36
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
Filtering via Home Assistant stopped working #388
Comments
Hi Wolfgang, I can confirm that this stopped working. I don't know why yet. But I hope I have time this weekend to fix it. |
Ah, good to know! Thanks! |
Home Assistant changed the way how it handles text sensors. Sensor devices are now limited to numbers. Text sensors have to use now the new text device entity. I fixed this and created a new blueprint. This works as expected on my own devices. Will deploy a new versions of picframe and the home assistant blueprint this weekend. |
Oh, wow, great. Many thanks! |
@helgeerbe I just did a fresh install on a Pi 4 with Buster. The max version of picframe I get to is 2023.07.26.post1 During installation, I got the following text:
So, could it be that I can't use your latest commit with Buster? |
Which OS version are you using? |
I use bullseye. pi@picframe:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/" Is there a reason why you try buster? |
I also updated the blueprint https://gist.github.com/helgeerbe/78f66ecf1f5206ce50ef9599892f202a . On bullesye everythings works fine for me. |
I remember there was one issue with Bullseye back then which kept me using Buster. I'll do a fresh install with Buster and will check. Would you have the Bullseye specific instructions somewhere? |
What happens if you try |
I am in the middle of installing Bullseye.. :-) What I would need are the raspi config settings and the manual start command line.. |
I am also having troubles with all the commands for Buster that I documented here: https://www.thedigitalpictureframe.com/how-to-add-crossfading-slide-transitions-to-your-digital-picture-frame-using-pi3d/ Do we have a Bullseye installation wiki somewhere? |
This ist still my fastest approach: https://gist.github.com/thomasedoff/3973846101da1e7496524be075f1c02f |
Even this
|
|
Thanks. That solves one thing but
I guess, that's because I didn't install the right driver in raspi config. But which one do I choose? |
I'll have to write a completely revised version for Bullseye once I get it to work. |
Yes, the whole batch of problems we saw back then: #195 I never got around to installing a running version with Bullseye with the same performance as Buster. But it seems you have found a way. How did you get it to work on a Pi 4? |
|
Great, thanks. I can't find your Wiki page where you originally described the integration, and mine is a bit outdated. Would you have the link again, please @helgeerbe ? |
Thanks. I am a bit lost with the Home Assistant Update. I replaced the Blueprint, removed the MQTT integration, which came back after restarting picframe and removed the helpers you specified. Everything works fine except for the text inputs, which don't work. Tags, Location, Dates. When I enter a tag, I can see the message sent via MQTT (in MQTT Explorer) but the image choice is not adapted. I went through the original installation but I am not sure where I missed something. |
can you show me the topic, where the tags input is send from the mqtt explorer? |
if you enter a tag in the web frontend of picframe, does it show up in home assistant? |
Can you tell me exactly what to do so that I can show you this result? Never worked with traces before. |
The thing is, I don't see any automation called "picframe". |
And when I do "show automations" under your Blueprint, I don't see any. |
I guess, it's time to update this great article: https://www.thedigitalpictureframe.com/integrate-raspberry-pi-picture-frame-home-assistant/ Should be a lot shorter because HA creates the front end automatically. |
Ah, a very good question: No, I hadn't! :.-) Now, the tags and country filters work fine! The date filters reduce the number of selected photos but not the right date range... |
Can Blueprints also create Helpers? This would make the instructions for users even easier. |
Good to hear, that it was at the end an easy solution. What do you mean about the right date range? Can you show what you entered and how the mqqt payload looks like? The automation converts the entered text, into a timestamp number.
Unfortunately not. For |
That would be really nice! Would you expect the communication cycle to be unreasonably long? |
Convertion seems to be correct:
Problematic could be that images might be included in the start date, but excluded from the end date. |
Might be better to ad 24 hours to the date_to number. |
Which I do would do where? |
I just updated the blueprint. |
If this works for you, can you close this issue pleas. |
What's the best way to update the blueprint? Should I delete the automation first? |
Ok, I did that, thanks. The funny thing is that Date To works, but date from is still flawed. However, Date to doesn't revert to the default value (year 2038) when you delete the entry. |
Hi Wolfgang, you can test the timestamp yourself: https://www.unixtimestamp.com
For me the timestamps looks good.
This works for me on Safari and Chrome. Have in mind after deleting you have to press enter, or click into an other ui element. So the input is processed. |
Ok, will try that.
I did. Maybe something else I should have installed is missing? |
@helgeerbe What would I have to remove to completely start from scratch the Home Assistant integration? I'd like to go through the steps that somebody installing the system for the first time encounters after all your great updates. |
I see the issue on the home assistant app for date_to. The last entered date is restored, when you delete the input. Date_from works.Have to investigate further. Removing everything
|
Thanks. I'll wait for you to solve this last issue and will then do a clean install. |
@sapnho can you test the latest blueprint, please |
Works beautifully, thanks much! |
This one is for the master of Home Assistant, @helgeerbe ! :-)
I have always loved the filter possibilities of Pi3D via Home Assistant. However, some time ago, it stopped working. So, it has no effect if I now enter a keyword or modify the dates. HA is updated all the time, so I guess something broke along the way.
Was there anything that needed to be changed? I still use your old blueprint, which worked wonderfully before it didn't.
The text was updated successfully, but these errors were encountered: