Toon App: DoorCam

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Arnout2000
Member
Member
Posts: 115
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon App: DoorCam

Post by Arnout2000 »

Hard reset via the menu of the TOON?
Toonz
Forum Moderator
Forum Moderator
Posts: 1915
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon App: DoorCam

Post by Toonz »

'Herstarten' via Toon will do the job
member of the Toon Software Collective
oepi-loepi
Advanced Member
Advanced Member
Posts: 678
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon App: DoorCam

Post by oepi-loepi »

Or click it from the wall and click it back. (So poser cycle l, power off-on)
Xavier
Member
Member
Posts: 189
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon App: DoorCam

Post 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!
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
oepi-loepi
Advanced Member
Advanced Member
Posts: 678
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon App: DoorCam

Post 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.
Xavier
Member
Member
Posts: 189
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon App: DoorCam

Post 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.
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Xavier
Member
Member
Posts: 189
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon App: DoorCam

Post 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.
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
oepi-loepi
Advanced Member
Advanced Member
Posts: 678
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon App: DoorCam

Post 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.
Xavier
Member
Member
Posts: 189
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon App: DoorCam

Post 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!
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Arnout2000
Member
Member
Posts: 115
Joined: Sun Oct 04, 2020 8:11 pm

Re: Toon App: DoorCam

Post 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.
Xavier
Member
Member
Posts: 189
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon App: DoorCam

Post 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
Screenshot_1.png (168.65 KiB) Viewed 4203 times
Next to "Helpers":
Screenshot_2.png
Screenshot_2.png (19.84 KiB) Viewed 4203 times
3. Add a new Helper by pressing the bottom (bottom right side) "Create helper:
Screenshot_3.png
Screenshot_3.png (7.99 KiB) Viewed 4203 times
4. Complete the form for the new Helper:
Screenshot_4.png
Screenshot_4.png (47.12 KiB) Viewed 4203 times
5. Now we need to create a "long lived access token", Go to your user profiel on the bottom left:
Screenshot_5.png
Screenshot_5.png (35.25 KiB) Viewed 4203 times
6. Go to "Security":
Screenshot_6.png
Screenshot_6.png (14.33 KiB) Viewed 4203 times
(Instruction continues in next post due to limitations of adding screenshots)
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Xavier
Member
Member
Posts: 189
Joined: Wed Jan 16, 2019 1:40 am

Re: Toon App: DoorCam

Post 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
Screenshot_7.png (41.22 KiB) Viewed 4175 times
8. Enter a name for the token and click Ok:
Screenshot_8.png
Screenshot_8.png (9.47 KiB) Viewed 4175 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.
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
oepi-loepi
Advanced Member
Advanced Member
Posts: 678
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon App: DoorCam

Post 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.
SydneyNL
Starting Member
Starting Member
Posts: 2
Joined: Mon Dec 09, 2024 12:46 am

Re: Toon App: DoorCam

Post 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.
Jesse
Starting Member
Starting Member
Posts: 3
Joined: Wed Oct 07, 2020 9:21 am

Re: Toon App: DoorCam

Post 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!
Post Reply

Return to “Toon Apps”