Page 2 of 3
Re: Dashticz Security Panel
Posted: Tuesday 28 April 2020 17:46
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?
Re: Dashticz Security Panel
Posted: Tuesday 28 April 2020 18:13
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.
Re: Dashticz Security Panel
Posted: Tuesday 28 April 2020 18:23
by sammyke007
Tnx for the quick help/fix!
Re: Dashticz Security Panel
Posted: Tuesday 28 April 2020 21:36
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.
Re: Dashticz Security Panel
Posted: Tuesday 28 April 2020 22:43
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.
Re: Dashticz Security Panel
Posted: Thursday 30 April 2020 0:07
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
Re: Dashticz Security Panel
Posted: Thursday 30 April 2020 8:32
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?
Re: Dashticz Security Panel
Posted: Thursday 30 April 2020 11:37
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¶m=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.
Re: Dashticz Security Panel
Posted: Thursday 30 April 2020 12:53
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)
Re: Dashticz Security Panel
Posted: Thursday 30 April 2020 13:00
by sammyke007
I downloaded beta.zip from Github from the Dashticz's beta branch and extracted everything except my custom folder.
Re: Dashticz Security Panel
Posted: Saturday 02 May 2020 14:19
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¶m=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?
Re: Dashticz Security Panel
Posted: Saturday 02 May 2020 18:32
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¶m=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!

@Lokonli, issue fixed, tnx!
Re: Dashticz Security Panel
Posted: Saturday 02 May 2020 18:41
by clinkadink
I'll glady accept the praise, but ... it was Lokonli who fixed it

Re: Dashticz Security Panel
Posted: Saturday 02 May 2020 18:50
by sammyke007
Hahaha, alright

.
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?

Re: Dashticz Security Panel
Posted: Saturday 02 May 2020 19:27
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

... you can then just enter the code and disarm.
Re: Dashticz Security Panel
Posted: Saturday 02 May 2020 20:05
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
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

.
Re: Dashticz Security Panel
Posted: Saturday 02 May 2020 20:26
by clinkadink
Excellent, glad its working. It was a good question, hopefully it will help someone else too

Re: Dashticz Security Panel
Posted: Tuesday 01 September 2020 12:22
by cduijker
My security panel shows a Chinese icon instead of the arm home button.
Does anybody know how I can fix this?
Regards
Re: Dashticz Security Panel
Posted: Tuesday 01 September 2020 17:26
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?

Re: Dashticz Security Panel
Posted: Tuesday 01 September 2020 22:14
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?