Thank again jon,
I started over with deleting the virtual devices, then removing the Wink Siren.
I then added the Wink Siren which became node 28.
I set the Domesirenchime.ini as follows:
[28]
HomeiD= C123456C
SirenChimeControl=404
and triggered the script with only the parameter 28 and no sub indicated.
404 being the ID shown for the on/off siren switch and 123456 is replaced with my real Home ID
I get the following in the log when the script was creating devices with ID's of 405, 409 thru 413.
HSTouch Server Warning Exception on Value Change callback: Object reference not set to an instance of an object
The following line is the first in Sub Main of the ini file
Dim Debug as Boolean = True
Your hint that the script was not writing to the log file helped me figure it out. I placed the same lines of code that write the values to the log file in different locations to find out where script was failing.
I had edited the ini file to see where the program was failing and found that it was not reading the NodeIDStr and exiting the main sub.
After commenting out those lines of code, and hard coding ( Dim NodeID as Integer = 28), I retriggered the script but forgot to indicate the Main sub but did have parameter 28. The script created another set of virtual devices (no errors indicated in the log file) with new ID numbers different from the first ones. I then set the to event to indicate the sub Main and paramater 28 and everything started working. I deleted the first set of virtual devices and have no clue why they wouldn't work and second group did.
I am not a visual basic programmer and am just learning Python. It's hard for 75 yr old to keep up with all the new technology. If you wanted me to write assembly language code for a 6502 that was in an Apple II+ or a 8080 or 6800, I would be much more at home. I never took a programming class and had to teach myself so I'm a little slow at picking up all that you young geniuses take for granted.
Thanks again for chiming (no pun intended) in to help me get the chime working.
ocxoman (I used to design low noise ovenized crystal oscillators in my last engineering stint -- OCXO's ) hence the name
I started over with deleting the virtual devices, then removing the Wink Siren.
I then added the Wink Siren which became node 28.
I set the Domesirenchime.ini as follows:
[28]
HomeiD= C123456C
SirenChimeControl=404
and triggered the script with only the parameter 28 and no sub indicated.
404 being the ID shown for the on/off siren switch and 123456 is replaced with my real Home ID
I get the following in the log when the script was creating devices with ID's of 405, 409 thru 413.
HSTouch Server Warning Exception on Value Change callback: Object reference not set to an instance of an object
The following line is the first in Sub Main of the ini file
Dim Debug as Boolean = True
Your hint that the script was not writing to the log file helped me figure it out. I placed the same lines of code that write the values to the log file in different locations to find out where script was failing.
I had edited the ini file to see where the program was failing and found that it was not reading the NodeIDStr and exiting the main sub.
After commenting out those lines of code, and hard coding ( Dim NodeID as Integer = 28), I retriggered the script but forgot to indicate the Main sub but did have parameter 28. The script created another set of virtual devices (no errors indicated in the log file) with new ID numbers different from the first ones. I then set the to event to indicate the sub Main and paramater 28 and everything started working. I deleted the first set of virtual devices and have no clue why they wouldn't work and second group did.
I am not a visual basic programmer and am just learning Python. It's hard for 75 yr old to keep up with all the new technology. If you wanted me to write assembly language code for a 6502 that was in an Apple II+ or a 8080 or 6800, I would be much more at home. I never took a programming class and had to teach myself so I'm a little slow at picking up all that you young geniuses take for granted.
Thanks again for chiming (no pun intended) in to help me get the chime working.
ocxoman (I used to design low noise ovenized crystal oscillators in my last engineering stint -- OCXO's ) hence the name
Comment