Dashticz Security Panel

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz Security Panel

Post by sammyke007 »

Lokonli wrote: Tuesday 28 April 2020 17:15
sammyke007 wrote: Tuesday 28 April 2020 14:17 If I enter my PIN to disarm using the secpanel, it works fine.
If I try to arm home or arm away after entering PIN, it beeps 4 times and nothing happens?
What is the Security Panel Delay value in Domoticz?
If it's 0 can you retest with a non 0 value?
The delay is 0 indeed, because I've got a delay integrated in my DzVents script.
Setting the delay to 1 sec. works indeed. Bug?
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Security Panel

Post by Lokonli »

sammyke007 wrote: Tuesday 28 April 2020 17:46
Lokonli wrote: Tuesday 28 April 2020 17:15
sammyke007 wrote: Tuesday 28 April 2020 14:17 If I enter my PIN to disarm using the secpanel, it works fine.
If I try to arm home or arm away after entering PIN, it beeps 4 times and nothing happens?
What is the Security Panel Delay value in Domoticz?
If it's 0 can you retest with a non 0 value?
The delay is 0 indeed, because I've got a delay integrated in my DzVents script.
Setting the delay to 1 sec. works indeed. Bug?
Yes, I would say so. We'll look into it.
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz Security Panel

Post by sammyke007 »

Tnx for the quick help/fix!
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Security Panel

Post by clinkadink »

HansieNL wrote: Tuesday 28 April 2020 14:42 When armed via Domoticz and try to disarm I get a message NO CONNECT. For some reason there’s no connection between Dashticz and Domoticz. Switches are working. If I restore a backup of 7 days ago theré's no problem.
@clinkadink : Any idea what’s going wrong?
Yes, I found the issue and raised a PR to address both bugs above. Should be fixed anytime soon.
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Security Panel

Post by HansieNL »

clinkadink wrote: Tuesday 28 April 2020 21:36
Spoiler: show
HansieNL wrote: Tuesday 28 April 2020 14:42 When armed via Domoticz and try to disarm I get a message NO CONNECT. For some reason there’s no connection between Dashticz and Domoticz. Switches are working. If I restore a backup of 7 days ago theré's no problem.
@clinkadink : Any idea what’s going wrong?
Yes, I found the issue and raised a PR to address both bugs above. Should be fixed anytime soon.
Thanks. PR tested and working o.k.
Blah blah blah
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz Security Panel

Post by sammyke007 »

Alright, bug smashed, tnx! Next question... Possible to enable secpanel when armed away but without including the block somewhere? It shows the secpanel, but says "no connection" if its not included on a screen...

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Security Panel

Post by Lokonli »

sammyke007 wrote: Thursday 30 April 2020 0:07 Alright, bug smashed, tnx! Next question... Possible to enable secpanel when armed away but without including the block somewhere? It shows the secpanel, but says "no connection" if its not included on a screen...

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
Yes, that should work.
The beta branch was updated last night. Did you already test with that one?
If yes, can you give more information on your setup:

* Server OS (debian 10, Ubuntu, Windows , Raspbian ...)
* Domoticz version (2020.2, ...)
* Browser and browser OS (Chrome on Win10, Fully Kiosk on
* Websocket setting ( config['enable_websocket'] = ... )
* Security panel lock setting ( config['security_panel_lock'] = ...)
* In Domoticz->settings: enabled local network without username/password, including your browser IP

Open Dashticz in Chrome, open DevTools (F12), refresh Dashticz:
Which errors are reported in the console tab?
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz Security Panel

Post by sammyke007 »

* Dashticz 3.4.5 and updated today again, so latest beta version.
* Domoticz 2020.1 (Jadahl package) with Python on Synology NAS
* Chrome and Firefox
* config['security_panel_lock'] = 1;
* config['enable_websocket'] = 1;

Console error:

Code: Select all

Failed to load resource: the server http://192.168.1.190/dashticz/undefinedtype=command&param=getsecstatus&v= responded with a status of 404 (Not Found)
If I specify a block

Code: Select all

blocks['secpanel'] = { //Security Panel special block
  title: 'Sec Panel',
  width: 12
}
and include this block on 1 of my screens, it works fine. Strange!

So it's showing the Security Panel perfectly when "armed away" is the secpanel status in Domoticz, but it tells me "No Connect".
If I disarm using Domoticz, Dashticz refreshes, hides the secpanel screen, and shows the normal screens again.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Security Panel

Post by Lokonli »

Thanks.
Something is wrong indeed: The undefined in the url should not be there. I'll try to find out what's causing that.

How did you update Dashticz?
(reason: If you download release v3.4.5 Beta, you don't have the latest version. You have to download beta.zip from github/dashticz, or update via git pull on the beta branch)
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz Security Panel

Post by sammyke007 »

I downloaded beta.zip from Github from the Dashticz's beta branch and extracted everything except my custom folder.
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Security Panel

Post by clinkadink »

sammyke007 wrote: Thursday 30 April 2020 11:37

Code: Select all

Failed to load resource: the server http://192.168.1.190/dashticz/undefinedtype=command&param=getsecstatus&v= responded with a status of 404 (Not Found)
I am guessing that the IP address above is your Dashticz and not your Domoticz, correct? This is issue has been fixed, please can you retry with the latest updated beta?
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz Security Panel

Post by sammyke007 »

clinkadink wrote: Saturday 02 May 2020 14:19
sammyke007 wrote: Thursday 30 April 2020 11:37

Code: Select all

Failed to load resource: the server http://192.168.1.190/dashticz/undefinedtype=command&param=getsecstatus&v= responded with a status of 404 (Not Found)
I am guessing that the IP address above is your Dashticz and not your Domoticz, correct? This is issue has been fixed, please can you retry with the latest updated beta?
It's working perfect! Tnx man! 8-)
@Lokonli, issue fixed, tnx!
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Security Panel

Post by clinkadink »

I'll glady accept the praise, but ... it was Lokonli who fixed it ;)
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz Security Panel

Post by sammyke007 »

Hahaha, alright :D.

Maybe a strange question:
Is it possible to make the full screen security panel background "flash" when a specific Domoticz switch gets triggered? Something like this:

Code: Select all

function getStatus_IDXOFTHETRIGGER(block){
	if (block.device.Data == 'Triggered') {
		Secpanelfullscreen.addClass = 'blink';
	}
}
I would use this to make the security panel "blink" when a door/window sensor gets triggered (entry delay in an alarm system). Or is this too difficult to implement? :oops: :?
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Security Panel

Post by clinkadink »

So, when the system is "Armed Away", you want the fullscreen security panel to blink if a certain device has been changed state, e.g. closed > open. Is that what you are asking?

You will need to add the "alarm" class to the fullscreen security panel's modal (background).

Code: Select all

function getStatus_123(block){
  if (block.device.Data == 'open') {
    $('.sec-modal').addClass('alarm');
  }
}
This would need to be added to your custom.css:

Code: Select all

.alarm {
  -webkit-animation: flash 1s infinite; 	/* Safari 4+ */
  -moz-animation: flash 1s infinite; 		/* Fx 5+ */
  -o-animation: flash 1s infinite; 		/* Opera 12+ */
  animation: flash 1s infinite; 		/* IE 10+, Fx 29+ */
}

@keyframes flash {
  0%, 49% {
    background-color: #681717;
  }
  50%, 100% {
    background-color: #e50000;
  }
}
To deactivate the 'alarm', once you are happy no-one has broken in :shock: ... you can then just enter the code and disarm.
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz Security Panel

Post by sammyke007 »

Damn man, so fast and it's working!

I had to edit the custom.js to:

Code: Select all

function afterGetDevices()
if (alldevices[241].Data == 'Tripped') {
		$('.sec-modal').addClass('alarm');
	}
It's working great this way. Don't ask me why I need to do it this way :lol:
This helps my wife and kids to visually remember to deactivate the alarm when coming home beside Alexa shouting that they need to disable it :P :D .
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz Security Panel

Post by clinkadink »

Excellent, glad its working. It was a good question, hopefully it will help someone else too :)
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
cduijker
Posts: 15
Joined: Thursday 09 August 2018 15:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Security Panel

Post by cduijker »

My security panel shows a Chinese icon instead of the arm home button.
Does anybody know how I can fix this?
Regards
Attachments
6DC9000C-01F5-4503-816B-2B0DD275520B.jpeg
6DC9000C-01F5-4503-816B-2B0DD275520B.jpeg (212.54 KiB) Viewed 880 times
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Security Panel

Post by Lokonli »

cduijker wrote: Tuesday 01 September 2020 12:22 My security panel shows a Chinese icon instead of the arm home button.
Does anybody know how I can fix this?
Regards
You have a Huawei phone? ;)
cduijker
Posts: 15
Joined: Thursday 09 August 2018 15:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Security Panel

Post by cduijker »

No Huawei phone :)
But it shows on all of my devices. I have set all languages to english on my raspberry and all other OS's.
so why chinese?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest