Creating first ever screen : NullReferenceException
-
- Posts: 55
- Joined: Thu Jun 12, 2014 1:02 pm
Creating first ever screen : NullReferenceException
I'm a beginner with OSA so please forgive my feeble attempts...
I've managed to get the DSC Alarm plugin up and running and can see events in the log to show that OSA is picking up when someone trips a PIR sensor. Now I wanted to try make it visual using a screen. I created a screen and loaded up a plan of the house. I then tried to add a state image with the default icons for the open and closed lock just for testing. When I did this the screen editor gave a random error and now every time I try open it up I get a NullReferenceError as below...
I've managed to get the DSC Alarm plugin up and running and can see events in the log to show that OSA is picking up when someone trips a PIR sensor. Now I wanted to try make it visual using a screen. I created a screen and loaded up a plan of the house. I then tried to add a state image with the default icons for the open and closed lock just for testing. When I did this the screen editor gave a random error and now every time I try open it up I get a NullReferenceError as below...
- Attachments
-
- 2014-06-30_125806.jpg (40.59 KiB) Viewed 2980 times
Re: Creating first ever screen : NullReferenceException
Great, what method are you using to communicate with the DSC Alarm?tommysharp wrote:I've managed to get the DSC Alarm plugin up and running and can see events
For your error see this topic
http://www.opensourceautomation.com/php ... 955&p=7867&
Replace your OSAE.UI.Control.DLL with the one at the bottom.
If you still get errors you may have to manually delete the graphic object using the OSA Web Objects page. Then re-create the graphic object using the Screens app.
-
- Posts: 55
- Joined: Thu Jun 12, 2014 1:02 pm
Re: Creating first ever screen : NullReferenceException
I'm using the EnvisaLink 3 and ethernet. Been trying to use it with my Vera Lite and I'm actually a bit disappointed in the Vera Lite....
Replaced that DLL and have a slightly different error as below.
Replaced that DLL and have a slightly different error as below.
- Attachments
-
- 2014-06-30_170837.jpg (35.38 KiB) Viewed 2970 times
-
- Posts: 55
- Joined: Thu Jun 12, 2014 1:02 pm
Re: Creating first ever screen : NullReferenceException
Deleting the object for the DSC ALARM ZONE on my screen has removed the error.
Any tips on how to put the PIRs onto my house plan screen?
Thanks for your help by the way!
UPDATE : Adding a property label seems to work showing the TEXT status of "CLOSED" or "OPEN"....
Any tips on how to put the PIRs onto my house plan screen?
Thanks for your help by the way!
UPDATE : Adding a property label seems to work showing the TEXT status of "CLOSED" or "OPEN"....
Re: Creating first ever screen : NullReferenceException
You should also be able to use a State Image Control if you would rather see images for open and closed rather than the text.
-
- Posts: 55
- Joined: Thu Jun 12, 2014 1:02 pm
Re: Creating first ever screen : NullReferenceException
Nah, adding a state image for one of the alarm panel PIRs still crashes the thing...
This is what the object looks like.... I have to delete it and then the screen starts working again.
This is what the object looks like.... I have to delete it and then the screen starts working again.
- Attachments
-
- 2014-07-01_093254.jpg (174.15 KiB) Viewed 2955 times
Re: Creating first ever screen : NullReferenceException
Are you sure you loaded the DLL from the last post in the linked topic? There are two different DLL posted in that topic.
Should be able to create something like this
Should be able to create something like this
-
- Posts: 55
- Joined: Thu Jun 12, 2014 1:02 pm
Re: Creating first ever screen : NullReferenceException
Just grabbed the last DLL in that thread again to make sure....
But am not able to select the state like you can
But am not able to select the state like you can

- Attachments
-
- 2014-07-01_105443.jpg (19.08 KiB) Viewed 2949 times
Re: Creating first ever screen : NullReferenceException
This is strange. It works for me and the download counter is showing 20 downloads and no one else has mentioned any problems.
Into which directory are you copying the DLL?
Into which directory are you copying the DLL?
-
- Posts: 55
- Joined: Thu Jun 12, 2014 1:02 pm
Re: Creating first ever screen : NullReferenceException
Copied it into the OSA program files folder and overwrote the existing file.
Sent from my Nexus 5 using Tapatalk
Sent from my Nexus 5 using Tapatalk