UI7 - Updated D_DSCAlarmPartition2.json - state icons?

The display on the mobile apps has very little to do with the static JSON. That’s long been a sore point of mine.

Hi Rigpapa.

I also have a dsc plugin, all functions work well.

As for the problem, the dsc alarm panel and partition “devices” unfortunately have no icons.
I tried to find the icons in vera root with Winscp, but unfortunately I couldn’t find any psc related to dsc. Where can I find these pngs so I can copy them?
Thanks for the help.
Krisztian

I’m not the maintainer of that plugin, and I don’t have a DSC system, so I can’t really dive any deeper than the general information I gave @parkerc. Perhaps he can chime in with a fixed JSON file?

or @Krisztian_Szabo if you want to post the JSON file here, I can probably fix it up with default icons like I did for the Concord4 plug in, instead of trying to find/re-use specialize DSC images. Instead I just re-used items I knew would be on the Vera (like door locks, and siren images instead).

Hi, unfortunately I can’t upload any .json files, but I can paste the code in, but as you can see from the thread above, I played around with mine to make the icon appear, so it might not be wise to share that…

Thankfully I believe I still have copies of the original files (the DSC plugin has two tiles) - I’ll post them separately below due to their size…

D_DSCAlarmPanel1.json

{
"flashicon": "icons\/generic_sensor.swf",
"imgIconBody": "",
"imgIconDimmable": "",
"imgIconTurnable": "",
"imgIconMin": "",
"imgIconMax": "",
"halloIconsDir": "pics\/hallo",
"inScene": "0",
"DisplayStatus": {
    
},
"doc_url":{
    "doc_forced_url":{
        "text":"http://wiki.micasaverde.com/index.php/DscAlarmPanel"
    }
},
"Tabs": [
    {
        "Label": {
            "lang_tag": "DSC_alarm_panel",
            "text": "DSC Alarm Panel"
        },
        "Position": "0",
        "TabType": "flash",
        "Control": [
            {
                "ControlType": "variable",
                "Display": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Variable": "LCD",
                    "Top": 60,
                    "Left": 10,
                    "Width": 200,
                    "Height": 20
                }
            },
            {
                "ControlGroup": "2",
                "ControlHeader": "1",
                "ControlType": "label",
                "Label": {
                    "lang_tag": "device_settings_page",
                    "text": "PIN Options"
                },
                "Display": {
                    "Top": 100,
                    "Left": 50,
                    "Width": 200,
                    "Height": 20
                }
            },
            {
                "ControlGroup": "2",
                "ControlPair": "1",
                "ControlType": "input",
                "ID": "PINCode",
                "Display": {
                    "Top": 120,
                    "Left": 50,
                    "Width": 100,
                    "Height": 20
                }
            },
            {
                "ControlGroup": "2",
                "ControlPair": "1",
                "ControlType": "button",
                "Label": {
                    "lang_tag": "cmd_set",
                    "text": "Set Time"
                },
                "Display": {
                    "Top": 118,
                    "Left": 170,
                    "Width": 100,
                    "Height": 20
                },
                "Command": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Action": "SyncTime",
                    "Parameters": [
                        {
                            "Name": "PINCode",
                            "ID": "PINCode"
                        }
                    ]
                }
            },
            {
                "ControlGroup": "2",
                "ControlHeader": "1",
                "ControlType": "label",
                "Label": {
                    "lang_tag": "device_settings_page",
                    "text": "DSC Interface Module"
                },
                "Display": {
                    "Top": 150,
                    "Left": 50,
                    "Width": 200,
                    "Height": 20
                }
            },
            {
                "ControlGroup": "2",
                "ControlPair": "1",
                "ControlType": "button",
                "Label": {
                    "lang_tag": "cmd_set",
                    "text": "DSC IT-100"
                },
                "Display": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Variable": "InterfaceType",
                    "Value": "IT100",
                    "Top": 170,
                    "Left": 50,
                    "Width": 100,
                    "Height": 20
                },
                "Command": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Action": "SetInterfaceType",
                    "Parameters": [
                        {
                            "Name": "InterfaceType",
                            "Value": "IT100"
                        }
                    ]
                }
            },
            {
                "ControlGroup": "2",
                "ControlPair": "1",
                "ControlType": "button",
                "Label": {
                    "lang_tag": "cmd_set",
                    "text": "EnvisaLink"
                },
                "Display": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Variable": "InterfaceType",
                    "Value": "2DS",
                    "Top": 170,
                    "Left": 155,
                    "Width": 100,
                    "Height": 20
                },
                "Command": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Action": "SetInterfaceType",
                    "Parameters": [
                        {
                            "Name": "InterfaceType",
                            "Value": "2DS"
                        }
                    ]
                }
            },
            {
                "ControlGroup": "2",
                "ControlHeader": "1",
                "ControlType": "label",
                "Label": {
                    "lang_tag": "device_settings_page",
                    "text": "Door Zones"
                },
                "Display": {
                    "Top": 200,
                    "Left": 50,
                    "Width": 200,
                    "Height": 20
                }
            },
            {
                "ControlType": "variable",
                "Display": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Variable": "DoorZones",
                    "Top": 220,
                    "Left": 50,
                    "Width": 200,
                    "Height": 20
                }
            },
            {
                "ControlGroup": "2",
                "ControlHeader": "1",
                "ControlType": "label",
                "Label": {
                    "lang_tag": "device_settings_page",
                    "text": "Motion Zones"
                },
                "Display": {
                    "Top": 240,
                    "Left": 50,
                    "Width": 200,
                    "Height": 20
                }
            },
            {
                "ControlType": "variable",
                "Display": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Variable": "MotionZones",
                    "Top": 260,
                    "Left": 50,
                    "Width": 200,
                    "Height": 20
                }
            },
            {
                "ControlGroup": "2",
                "ControlHeader": "1",
                "ControlType": "label",
                "Label": {
                    "lang_tag": "device_settings_page",
                    "text": "Smoke Zones"
                },
                "Display": {
                    "Top": 280,
                    "Left": 50,
                    "Width": 200,
                    "Height": 20
                }
            },
            {
                "ControlType": "variable",
                "Display": {
                    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
                    "Variable": "SmokeZones",
                    "Top": 300,
                    "Left": 50,
                    "Width": 200,
                    "Height": 20
                }
            }
        ]
    },
    {
        "Label": {
            "lang_tag": "notifications",
            "text": "Notifications" 
        },
        "Position": "5",
        "TabType": "javascript",
        "ScriptName": "shared.js",
        "Function": "device_notifications" 
    },
    {
        "Label": {
            "lang_tag": "settings",
            "text": "Settings" 
        },
        "Position": "1",
        "TabType": "javascript",
        "ScriptName": "shared.js",
        "Function": "simple_device" 
    },
    {
        "Label": {
            "lang_tag": "advanced",
            "text": "Advanced" 
        },
        "Position": "2",
        "TabType": "javascript",
        "ScriptName": "shared.js",
        "Function": "advanced_device" 
    } 
],
"eventList": {
    "event_1": {
        "label":"Fire Key Alarm",
        "serviceId": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
        "argumentList": {
            "argument_1": {
                "dataType": "boolean",
                "defaultValue": "1",
                "allowedValueList": {
                    "Cleared": "0",
                    "Triggered": "1"
                },
                "name": "FireKeyAlarm",
                "comparisson": "=",
                "prefix": "When Fire Alarm is",
                "suffix": ""
            }
        }
    },
    "event_2": {
        "label":"Auxiliary Key Alarm",
        "serviceId": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
        "argumentList": {
            "argument_1": {
                "dataType": "boolean",
                "defaultValue": "1",
                "allowedValueList": {
                    "Cleared": "0",
                    "Triggered": "1"
                },
                "name": "AuxKeyAlarm",
                "comparisson": "=",
                "prefix": "When Alarm is",
                "suffix": ""
            }
        }
    },
    "event_3": {
        "label":"Panic Key Alarm",
        "serviceId": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
        "argumentList": {
            "argument_1": {
                "dataType": "boolean",
                "defaultValue": "1",
                "allowedValueList": {
                    "Cleared": "0",
                    "Triggered": "1"
                },
                "name": "PanicKeyAlarm",
                "comparisson": "=",
                "prefix": "When Panic Key is",
                "suffix": ""
            }
        }
    },
    "event_4": {
        "label":"Auxiliary Input Alarm",
        "serviceId": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
        "argumentList": {
            "argument_1": {
                "dataType": "boolean",
                "defaultValue": "1",
                "allowedValueList": {
                    "Cleared": "0",
                    "Triggered": "1"
                },
                "name": "AuxInputAlarm",
                "comparisson": "=",
                "prefix": "When Auxliary Input is",
                "suffix": ""
            }
        }
    }
},
"eventList2": [
    {
        "id": 1,
        "label": {
            "lang_tag": "fire_key_alarm",
            "text": "Fire Key Alarm"
        },
        "serviceId": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
        "argumentList": [
            {
                "id": 1,
                "dataType": "boolean",
                "defaultValue": "1",
                "allowedValueList": [
                    {
                        "Cleared": "0",
                        "HumanFriendlyText": {
                            "lang_tag": "fire_alarm_cleared",
                            "text": "_DEVICE_NAME_: Fire Alarm is Cleared"
                        }
                    },
                    {
                        "Triggered": "1",
                        "HumanFriendlyText": {
                            "lang_tag": "fire_alarm_triggered",
                            "text": "_DEVICE_NAME_: Fire Alarm is Triggered"
                        }
                    }
                ],
                "name": "FireKeyAlarm",
                "comparisson": "=",
                "prefix": {
                    "lang_tag": "when",
                    "text": "When?"
                },
                "suffix": {}
            }
        ]
    },
    {
        "id": 2,
        "label": {
            "lang_tag": "auxiliary_key_alarm",
            "text": "Auxiliary Key Alarm"
        },
        "serviceId": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
        "argumentList": [
            {
                "id": 1,
                "dataType": "boolean",
                "defaultValue": "1",
                "allowedValueList": [
                    {
                        "Cleared": "0",
                        "HumanFriendlyText": {
                            "lang_tag": "aux_alarm_cleared",
                            "text": "_DEVICE_NAME_: Auxiliary Alarm is Cleared"
                        }
                    },
                    {
                        "Triggered": "1",
                        "HumanFriendlyText": {
                            "lang_tag": "aux_alarm_triggered",
                            "text": "_DEVICE_NAME_: Auxiliary Alarm is Triggered"
                        }
                    }
                ],
                "name": "AuxKeyAlarm",
                "comparisson": "=",
                "prefix": {
                    "lang_tag": "when",
                    "text": "When?"
                },
                "suffix": {}
            }
        ]
    },
    {
        "id": 3,
        "label": {
            "lang_tag": "panic_key_alarm",
            "text": "Panic Key Alarm"
        },
        "serviceId": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
        "argumentList": [
            {
                "id": 1,
                "dataType": "boolean",
                "defaultValue": "1",
                "allowedValueList": [
                    {
                        "Cleared": "0",
                        "HumanFriendlyText": {
                            "lang_tag": "panic_alarm_cleared",
                            "text": "_DEVICE_NAME_: Panic Alarm is Cleared"
                        }
                    },
                    {
                        "Triggered": "1",
                        "HumanFriendlyText": {
                            "lang_tag": "panic_alarm_triggered",
                            "text": "_DEVICE_NAME_: Panic Alarm is Triggered"
                        }
                    }
                ],
                "name": "PanicKeyAlarm",
                "comparisson": "=",
                "prefix": {
                    "lang_tag": "when",
                    "text": "When?"
                },
                "suffix": {}
            }
        ]
    },
    {
        "id": 4,
        "label": {
            "lang_tag": "auxiliary_input_alarm",
            "text": "Auxiliary Input Alarm"
        },
        "serviceId": "urn:micasaverde-com:serviceId:DSCAlarmPanel1",
        "argumentList": [
            {
                "id": 1,
                "dataType": "boolean",
                "defaultValue": "1",
                "allowedValueList": [
                    {
                        "Cleared": "0",
                        "HumanFriendlyText": {
                            "lang_tag": "aux_alarm_cleared",
                            "text": "_DEVICE_NAME_: Auxiliary Input Alarm is Cleared"
                        }
                    },
                    {
                        "Triggered": "1",
                        "HumanFriendlyText": {
                            "lang_tag": "aux_alarm_triggered",
                            "text": "_DEVICE_NAME_: Auxiliary Input Alarm is Triggered"
                        }
                    }
                ],
                "name": "AuxInputAlarm",
                "comparisson": "=",
                "prefix": {
                    "lang_tag": "when",
                    "text": "When?"
                },
                "suffix": {}
            }
        ]
    }
],
"DeviceType": "urn:schemas-micasaverde-com:device:DSCAlarmPanel:1",
"device_type": "urn:schemas-micasaverde-com:device:DSCAlarmPanel:1" 

}

Actually I can’t paste the other .json in, as it’s too big !! :slight_smile:

But seeing as the first part of the codeis the key section, i’ll just paste that.

D_DSCAlarmPartition2.json

{
"flashicon": "icons\/Door_Lock.swf",
"imgIconBody": "",
"imgIconDimmable": "",
"imgIconTurnable": "",
"imgIconMin": "Door_Lock_0.png",
"imgIconMax": "Door_Lock_100.png",
"state_icons": [
    "Door_Lock_0.png",
    "Door_Lock_100.png"
],
"halloIconsDir": "pics\/hallo",
"inScene": "1",
"DisplayStatus": {
    "Style": "label",
    "Service": "urn:micasaverde-com:serviceId:DSCAlarmPartition1",
    "Variable": "ArmModeNum",
    "MinValue": "0",
    "MaxValue": "1"
},

You can zip the files and post the .json files

Good call !! , and here you go…

Archive.zip (5.2 KB)

Thank you for your answer, Rigpapa.

Krisztian

@shallowearth
Thank you for your reply.
I would be happy if the factory dsc icons appeared.
Can’t you help?

Dear @parkerc,

Thanks for the files, I uploaded them to vera, but unfortunately there was no change.
There are no icons.

Maybe it’s because I can’t find dsc-related png in vera root either?

Hi, I only uploaded the originals earlier , attached is the D_DSCAlarmPanel1.json I changed.

D_DSCAlarmPanel3.zip (2.0 KB)

Note that this one ends with a ‘3’ to show that it’s a different version, so you can either rename it back to ‘1’, or once unzipped and uploaded as-is , you can just change the file name within the plug-in’s parameters to match…

FYI - All I did in the end was change the first part of the .json file to point to an existing stock Vera icon

{
"default_icon": "../../../img/other/prestMonitoring.png",
"inScene": "0",
"DisplayStatus": {
    
},

Result in this…

Thank you very much for the file.
I tried it and it works, the icon appeared for the alarm panel.
Should I also intervene with the partition device? (for nothing appeared here.)

How can I display a factory dsc icon?
If I download a dsc png from the internet, copy it to vera in the appropriate directory, and change the name of the png file in json to the appropriate one, can it be good?

@Krisztian_Szabo Please try the attached JSON for you partition device. It will show a Door Lock (unlocked if disarmed, and locked if armed), or a Siren if the alarm is active. If you would prefer a static icon I could do that, but this feels more meaningful?D_DSCAlarmPartition2.zip (3.1 KB)

I have a number of plugins that I have not made an update for many years.
Thanks for sorting out this … A few more changes and I should be ready to update

I am glad there a strill some active developers.

@RichardTSchaefer did that file work for you? I don’t have that alarm panel so couldn’t verify, but might place my Concord for a DSC when the Concord is retired.

Kedves @shallowearth!

Sorry I’m just applying, but so far I haven’t been able to try. (I had other problems with vera …)
Now, I uploaded, sent a fillet, and became my icon!

Thank you very much for your help!

Krisztian

Hey There,
I appreciate the work that is being done here, but i am having some trouble trying to follow how to update the information for the DSC Pluggin. Is there anyway someone let me know how to get this update into my vera? Sorry, pretty new to all the update methods.

Thanks in advance.

See this new thread for the latest files and instructions: DSC Alarm Icon Fix Up - #2 by shallowearth - Unmaintained - Ezlo Community