Toon app: Home Assistant controller
Moderators: marcelr, TheHogNL, Toonz
Re: Toon app: Home Assistant controller
Awesome, thank you. Have a great time!
-
- Starting Member
- Posts: 12
- Joined: Tue Apr 16, 2019 5:58 pm
Re: Toon app: Home Assistant controller
I'm waiting to see News about this project as well, I'm starting to find my way but the discussed ideas would make my life easier!
Re: Toon app: Home Assistant controller
Do you know, when the latest version on the ToonStore will be updated?Toonz wrote:no problem, will be in late August after my holidayLuc_S wrote:@Toonz, it would be awesome if you (or someone else of course) could update the ToonStore version with the one now on GithubIf there's anything I can do to help out for this let me know.
Re: Toon app: Home Assistant controller
Thanks for the reminder, totally forgot about thisPhoolie wrote:Do you know, when the latest version on the ToonStore will be updated?

....soon.....
member of the Toon Software Collective
Re: Toon app: Home Assistant controller
No problem. I'll juist waitToonz wrote:Thanks for the reminder, totally forgot about thisPhoolie wrote:Do you know, when the latest version on the ToonStore will be updated?
....soon.....

Re: Toon app: Home Assistant controller
Hi all,
version 1.0.4 is available in ToonStore.
I just took the latest version from the GitHub from Luc_S.
for the changelog see some posts above
Kind regards,
Toonz
version 1.0.4 is available in ToonStore.
I just took the latest version from the GitHub from Luc_S.
for the changelog see some posts above
Kind regards,
Toonz
member of the Toon Software Collective
Re: Toon app: Home Assistant controller
After the update, it looks like something isn’t okay, the switches on the settings screen are missing:
Somebody know how to fix it?Re: Toon app: Home Assistant controller
I haven't installed the app from the ToonStore yet, I will when I have the time. For now I would say try to check the drawables folder on your Toon and compare it with the files on GitHub:
github.com/Luc-S/Toon-HASS/tree/master/ ... /drawables
Should be the same files as you have on your Toon in folder
You can try to press the empty space anyway, maybe it still works. Else you can manually change your userSettings.json to how you would set the buttons as a workaround:
This sets Clock widget to On, Legacy login to NO and SSL to YES.
github.com/Luc-S/Toon-HASS/tree/master/ ... /drawables
Should be the same files as you have on your Toon in folder
Code: Select all
/HCBv2/qml/apps/homeassistant/drawables/
Code: Select all
{"Clock":1,"Legacy":0,"Pass":"","Port":"443","SSL":"yes","Server":"xx.duckdns.org"}
Re: Toon app: Home Assistant controller
Hmm I just installed the app from the ToonStore and for some reason it looks in the wrong directory for the switch images. Pretty strange because it only occurs for the switch images:
The knob.png (and background images used for the knob) are located on /HCBv2/qml/apps/homeassistant/drawables/ so yeah, it cannot open qrc:/tsc/knob.png
[Edit]
The locations of images are modified for correct installation through the ToonStore I guess. I noticed all image locations are changed to 'qrc:/tsc/...' However I can't quite figure out yet why the switches are having problems with this.
[Edit 2]
As a workaround you can copy the 2 files below from github.com/Luc-S/Toon-HASS/tree/master/ ... eassistant into your "/HCBv2/qml/apps/homeassistant/" folder on your Toon and overwrite the existing.
- HomeassistantScreen.qml
- HomeassistantConfigurationScreen.qml
[Edit 3]
Toonz explained me that images used in apps must be included in the resource file since version 4.16. These switch images are new and therefor not available yet. He'll try to arrange this with TheHogNL.
Code: Select all
file://qmf/qml/apps/homeassistant/HomeassistantConfigurationScreen.qml:505:17: QML Image: Cannot open: qrc:/tsc/knob.png
[Edit]
The locations of images are modified for correct installation through the ToonStore I guess. I noticed all image locations are changed to 'qrc:/tsc/...' However I can't quite figure out yet why the switches are having problems with this.
[Edit 2]
As a workaround you can copy the 2 files below from github.com/Luc-S/Toon-HASS/tree/master/ ... eassistant into your "/HCBv2/qml/apps/homeassistant/" folder on your Toon and overwrite the existing.
- HomeassistantScreen.qml
- HomeassistantConfigurationScreen.qml
[Edit 3]
Toonz explained me that images used in apps must be included in the resource file since version 4.16. These switch images are new and therefor not available yet. He'll try to arrange this with TheHogNL.
Re: Toon app: Home Assistant controller
Good evening!
Thanks for your work none the less!
I just tried this workaround, but it's not working for me. I'm not really sure how it's supposed to work though, aren't we overwriting files with the same files(The files don't appear modified for some while on github)?Luc_S wrote: [Edit 2]
As a workaround you can copy the 2 files below from github.com/Luc-S/Toon-HASS/tree/master/ ... eassistant into your "/HCBv2/qml/apps/homeassistant/" folder on your Toon and overwrite the existing.
- HomeassistantScreen.qml
- HomeassistantConfigurationScreen.qml
Thanks for your work none the less!
Re: Toon app: Home Assistant controller
When the app is packaged for installation through the ToonStore the DEVs change the absolute and relative paths to a different directory. This works fine unless you use new images and you don't let the DEVs know there are new images that need to be incorporated.
The files installed by the ToonStore have images paths like 'qrc:/tsc/image.png' and the files from GitHub still use the relative paths like './drawables/image.png'.
As a drastic workaround you can also uninstall the app from the ToonStore and copy the entire 'homeassistant' directory from GitHub into '/HCBv2/qml/apps/'. After a reboot the app should be available.
For me updating the 2 files worked. Do you have a 'drawables' folder with images on your Toon (in the homeassistant app folder)?
The files installed by the ToonStore have images paths like 'qrc:/tsc/image.png' and the files from GitHub still use the relative paths like './drawables/image.png'.
As a drastic workaround you can also uninstall the app from the ToonStore and copy the entire 'homeassistant' directory from GitHub into '/HCBv2/qml/apps/'. After a reboot the app should be available.
For me updating the 2 files worked. Do you have a 'drawables' folder with images on your Toon (in the homeassistant app folder)?
Re: Toon app: Home Assistant controller
I do have that folder, with all the images as presented on github.Luc_S wrote:For me updating the 2 files worked. Do you have a 'drawables' folder with images on your Toon (in the homeassistant app folder)?
I will try this now, and let you know the result.Luc_S wrote:As a drastic workaround you can also uninstall the app from the ToonStore and copy the entire 'homeassistant' directory from GitHub into '/HCBv2/qml/apps/'. After a reboot the app should be available.
Thanks for your explanation.
EDIT: It is working nicely when removing the app from toonstore and placing the entire homeassistant folder from github. Thanks!
Re: Toon app: Home Assistant controller
I tried your workaround and now it works fine.Luc_S wrote: As a drastic workaround you can also uninstall the app from the ToonStore and copy the entire 'homeassistant' directory from GitHub into '/HCBv2/qml/apps/'. After a reboot the app should be available.
Is there an easy way to add sensors & switches? With the touchscreen of the Toon needs a lot of patience
Re: Toon app: Home Assistant controller
Entering all info on Toon's touchscreen can be timeconsuming indeed
You can manually fill the sensors.json and switches.json however I can't give you an example right now. If you add 1 switch and 1 sensor I think you know the drill when you open the file on your Toon with command 'vi'.
If you've never used vi you probably want to check Google on how it works. There are some specific commands for editing and saving.
[Edit]
Did you guys reboot the Toon after you updated the 2 files? Just checking to find out why the first workaround didn't work for you.

Code: Select all
vi /HCBv2/qml/apps/homeassistant/switches.json
[Edit]
Did you guys reboot the Toon after you updated the 2 files? Just checking to find out why the first workaround didn't work for you.
Re: Toon app: Home Assistant controller
Isn't it possible to use WinSCP and edit the files with Notepad ++?Luc_S wrote:Entering all info on Toon's touchscreen can be timeconsuming indeedYou can manually fill the sensors.json and switches.json however I can't give you an example right now. If you add 1 switch and 1 sensor I think you know the drill when you open the file on your Toon with command 'vi'.
If you've never used vi you probably want to check Google on how it works. There are some specific commands for editing and saving.Code: Select all
vi /HCBv2/qml/apps/homeassistant/switches.json
I didn't tried the other workaround, because JurnD said, it wont worked.[Edit]
Did you guys reboot the Toon after you updated the 2 files? Just checking to find out why the first workaround didn't work for you.
If you want, I can try it this weekend.