Page 7 of 8
Re: Toon App: DoorCam
Posted: Thu Nov 30, 2023 9:06 pm
by Arnout2000
Hard reset via the menu of the TOON?
Re: Toon App: DoorCam
Posted: Fri Dec 01, 2023 8:39 am
by Toonz
'Herstarten' via Toon will do the job
Re: Toon App: DoorCam
Posted: Fri Dec 01, 2023 10:04 pm
by oepi-loepi
Or click it from the wall and click it back. (So poser cycle l, power off-on)
Re: Toon App: DoorCam
Posted: Wed Jun 12, 2024 12:42 pm
by Xavier
Bump:
Since 2 weeks I migrated from Domoticz to HomeAssistant.
I would like to trigger the doorcam from HA to my Rooted Toon as worked with Domoticz.
I installed Node-red and created the flow.
I added a helper in HA: "input_number.showdoorcamtoon"
In Toon(v2) I added the longlife key and set the rest of the config file to use with HA.
Pressing the doorbell at this time doesn't show camera feed initiated by HA.
On my second Toon(v2) when doorbell pressed with Domoticz setup it works.
I think I 'm missing somewhere a piece of config.
In my HA setup I don't have anything what looks like a helper (or something) to point HA to connect to Toon.
In Domoticz I created a variable with the IP-address of the Toons (both), thats something I'm missing in HA.
Any idea/help on how to fix this?
Thanks!
Re: Toon App: DoorCam
Posted: Wed Jun 12, 2024 10:45 pm
by oepi-loepi
De status van de ingestelde ha entiteit wordt elke 4 seconden gecontroleerd:
https://github.com/ToonSoftwareCollecti ... amTile.qml
De functie heet getha(). Zals je daar kunt lezen is het zo dat als de entiteit 200.0 is dan wordt het scherm van toon geopend. Met 100.0 wordt het scherm gesloten.
Re: Toon App: DoorCam
Posted: Wed Jun 12, 2024 11:11 pm
by Xavier
Mmzzz, welke entiteit moet ik in de Doorcam van HA dan zetten? Die van de deurbel of die van de aangemaakt helper (input_number.showdoorcamtoon)?
Die aangemaakt helper bevat toch alleen de minimum waarde 0 en de maximum waarde 200.
Re: Toon App: DoorCam
Posted: Wed Jun 12, 2024 11:28 pm
by Xavier
Snap hem al....
In HA moet ik een automation aanmaken die zorgt dat de waarde van input_number.showdoorcamtoon veranderd naar 100 wanneer er op de bel gedrukt worden en na 30 seconden de waarde van input_number.showdoorcamtoon aanpast naar 200?
begrijp ik hem zo goed?
Wat wilt de waarde 150 zeggen en wat gebeurd er dan?
Die zie ik nu in de logging van HA terugkomen namelijk.
Re: Toon App: DoorCam
Posted: Wed Jun 12, 2024 11:29 pm
by oepi-loepi
Ik zie jouw helpers niet en ook niet je node red. Maar ik lees alleen mijn software en als de opgegeven entiteit naar 200.0 gaat dan wordt het scherm geopend.
Re: Toon App: DoorCam
Posted: Wed Jun 12, 2024 11:41 pm
by Xavier
Ik heb Node-Red uitgeschakeld en een automation gemaakt in HA. Die zegt dat bij event.deur de waarde van input_numbers.showdoorcamtoon aangepast moet worden naar 100 en na 30 seconden terug naar 200. In de logging van de helper zie ik bijna direct nadat de waarde is aangepast naar 100 de waarde "opeens" naar 150 gaat, vervolgens na 30 seconden de waarde naar 200 wordt gezet ok dan na enkele seconden alweer naar 150 wordt gezet.
Ik snap niet waar de waarde 150 vandaan komt.....
EDIT: Hoe dan ook, op de Toon gaat het goed, scherm blijft netjes 30 seconden met de stream openstaan, ondanks dat in HA de waarde al na 2 a 3 seconden terug op 150 wordt gezet en ik nog steeds geen idee heb waar dat vandaan komt.
Bedankt in ieder geval voor je reactie!
Re: Toon App: DoorCam
Posted: Thu Jun 13, 2024 8:51 am
by Arnout2000
Ik gebruik de Doorcam in combinatie met Domoticz en bij mij wordt de variabele "ShowDoorCamToon" ook snel 150. Zo staat hij nu (in rust) ook.
Alles werkt verder prima dus geen probleem.
Re: Toon App: DoorCam
Posted: Thu Jun 13, 2024 9:05 am
by Xavier
Reference work / Manual Home Assistant in "Doorcam" app on Toon.
Starting point:
Rooted Toon
Installed HA instance
Installed WinSCP
IP-Camera with CGI-stream/Picture
1. Install Doorcam app in Toon from Toonstore
2. Go to HA and create a new Helper:
Go to Settings/Config then to "Devices & Services":

- Screenshot_1.png (168.65 KiB) Viewed 6742 times
Next to "Helpers":

- Screenshot_2.png (19.84 KiB) Viewed 6742 times
3. Add a new Helper by pressing the bottom (bottom right side) "Create helper:

- Screenshot_3.png (7.99 KiB) Viewed 6742 times
4. Complete the form for the new Helper:

- Screenshot_4.png (47.12 KiB) Viewed 6742 times
5. Now we need to create a "long lived access token", Go to your user profiel on the bottom left:

- Screenshot_5.png (35.25 KiB) Viewed 6742 times
6. Go to "Security":

- Screenshot_6.png (14.33 KiB) Viewed 6742 times
(Instruction continues in next post due to limitations of adding screenshots)
Re: Toon App: DoorCam
Posted: Thu Jun 13, 2024 9:20 am
by Xavier
Part 2 of Manual:
7. Scroll down to the bottom untill you see "long lived access token" and click on "Create token":

- Screenshot_7.png (41.22 KiB) Viewed 6714 times
8. Enter a name for the token and click Ok:

- Screenshot_8.png (9.47 KiB) Viewed 6714 times
9. Copy the token and paste the token for example in Notepad++ (and make sure to store the token, the token is only being created AND showed once!)
10. Go back to Toon
11. Add tile on Toon "Doorcam"
12. Open Doorcam app and go to "Configuratie" (Configuration)
13. Enter the video URL (The video url can be found at
https://www.ispyconnect.com/man.aspx?n=A1webcam) in the field: "URL doorcam image"
14. Switch to HA mode (switch slide to left)
15. Enter HA URL example:
http://192.168.10.1:8123/ (or https with matching portnumber works also)
16. Enter the Entity (helper) you created in HA (Example: input_number.showdoorcamtoon)
17. Start WinSCP session to your Toon
18. Go to folder: /mnt/data/tsc/
19. Open the file "doorcam_userSettings.json"
20. Paste the Long lived access token you created in HA and save the file
21. Restart Toon via TSC menu "Restart GUI "
22. Go back to HA and create an Automation (Config--> Automation and Scenes")
23. Click on the button "Create Automation"
24. Then go to "Edit as YAML" and paste this code and make sure to adjust the entity ID to your doorbell ID:
Code: Select all
alias: Deurbel camera op Toon
description: ""
trigger:
- platform: state
entity_id:
- YOUR SWITCH/EVENT DOORBELL ID
condition: []
action:
- service: input_number.set_value
metadata: {}
data:
value: 200
target:
entity_id: input_number.showdoorcamtoon
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- service: input_number.set_value
metadata: {}
data:
value: 100
target:
entity_id: input_number.showdoorcamtoon
mode: single
25. Save the Automation
26. Test by pressing the Doorbell, if everything is setup correctly your Toon will now show the stream of the Camera for 30 seconds.
Informational:
The Toon Doorcam app sends every 4 seconds a request (GetHA) to the provided entity: "input_number.showdoorcamtoon") and checks wether the value is set on 200. When the value is set on 200, then the Doorcam app streams the camera. After 30 seconds (based on the created automation in HA) the value is set to 100. When the Doorcam app detects the value 100 it will close/stop the Doorcam app/stream.
In previous posts in this thread there is talked about Node-Red flow, the Automation created in the steps in this walkthrough skips the need of Node-Red.
Re: Toon App: DoorCam
Posted: Thu Jun 13, 2024 7:31 pm
by oepi-loepi
Super dat het gelukt is en bedankt voor de uitgebreide handleiding. Overigens, zodra de toon 200 zit laat hij het beeld zien en zet hij de parameter naar 150. Dit om te voorkomen dat de toon in een oneindige loop komt.
Re: Toon App: DoorCam
Posted: Mon Dec 09, 2024 12:49 am
by SydneyNL
Hi Jesse,
is there an option that you can share your configuration with me?
for some reason, the Reolink doorbell notification from HA are coming true to my phone including snapshot
but can't get the stream come popup on my Toon 2 termostat, when i open the doorcam app itself
it's is showing the images that the camera is making!
Jesse wrote: ↑Sat Mar 04, 2023 4:44 pm
Hi, I have purchased the Reolink doorbell and configured the app as described in the opening post. When I open the doorcam app for the first time after rebooting Toon, the doorcam image is displayed. However, when I close the app and open it again it shows: No Connection To Camera
I have configured this URL (as described
here):
Code: Select all
http://192.168.xxx.xxx/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=USERNAME&password=PASSWORD
I configured the HTTP stream because the HTTPS stream doesn't work at all (it does in the browser)
I have no problems with opening the HTTP steam with my browser. Also, when I press F5 the page reloads without any problems
(The connection to my Home Assistant works. The doorcam app opens when I change the value of the helper to 200 and closes when I change the value to 100)
EDIT: When I restart the GUI (killall qt-gui), the doorcam works again (for once). For now, I'm running a script that executes the SSH command 5 minutes after the bell rings.
Re: Toon App: DoorCam
Posted: Tue Dec 17, 2024 4:49 pm
by Jesse
SydneyNL wrote: ↑Mon Dec 09, 2024 12:49 am
Hi Jesse,
is there an option that you can share your configuration with me?
for some reason, the Reolink doorbell notification from HA are coming true to my phone including snapshot
but can't get the stream come popup on my Toon 2 termostat, when i open the doorcam app itself
it's is showing the images that the camera is making!
Hi Sydney, I stopped using Toon so I can't share the config. Sorry!