Paid request - intergration with Elk M1 security panel


(Sturgeon637) #41

Can someone point me to which NodeMCU to order from Amazon?


(Hemant Gupta) #42

I got the one from CjCharles above: https://www.freewebstore.org/smartthings-diy-parts


(Hemant Gupta) #43

Success! I was able to arm the alarm from the NodeMCU webpage! Thank you CJCharles!

It did drop off the wifi network though after the first button press.
That may have been the same issue Brent encountered.


(cjcharles) #44

Ok, great to hear it is the same for both of you. I will have a look tonight to ensure it doesnt die after each request, and have found a library that I might be able to use to do a few more things quite easily. A few questions to help me narrow it down if you dont mind, when you make the first request:
Does it drop off the network (I.e. no longer in router tables)?
Does the web interface become inaccessible?
Do any of the lights flash or stop flashing, or go out?
Does it auto restart at any point (maybe 1-60 seconds after the crash) or is it then dead until power cycling?

If you have a computer then it would be great if you could connect the NodeMCU to the computer and open a serial port (e.g. through Serial monitor or Arduino software or something). I added loads of debugging code and serial comments, so that would be good to know where it is struggling.


(Hemant Gupta) #45

I am not sure how to see the routing tables in my overly complicated router (EdgeRouter). My fing app shows that it is disconnected from the network, but the router shows that is still has a DHCP lease.

yes, the web interface becomes inaccessible.
I see no light activity. In fact the only light that I see is a blue light when first connecting it.

It does not seem to fully restart.

I do have a computer. I will try tonight to see if I can get the serial monitor software working. Once I get it connected, do I just run the web interface again?

thanks!


(cjcharles) #46

Yes, if you connect the NodeMCU to your computer just like if you were plugging in a normal USB device, then install a driver (Windows is pretty good at doing this as they are official Node chips so the drivers are more commonly found as standard USB-Serial interfaces). Then you can open a serial monitor and set it to 9600bps and the newly added COM port in Windows, and you should see the NodeMCU print out some debug information about WiFi connection and Alarm connection, plus what messages are recorded when it crashes. You can always restart it by unplugging/plugging and confirm that the messages are the same (or catch any you missed at the start).

As for picking a serial monitor, you can use more or less anything, but a quick search found this which looks decent and super simple - https://www.compuphase.com/software/termite-3.4.zip


(Brent Crotts) #47

I am on vacation until Saturday but hopefully can catch up on the troubleshooting then. I am trying to stay up to date with the troubleshooting steps until I arrive back home.

Again, thanks for the help


(Dale Lenard) #48

Hi CJcharles,

I can confirm the same issue, after a successful arm or disarm, a rest is required. The actual device becomes unresponsive.

Also, for ST integration, I added the device handler and then the device, however it doesnt ask for the NodeMCU IP or anything, so it can’t interface into the device iteself.


(cjcharles) #49

In settings of the device it does (in the app press the cog).

If somebody can confirm the serial monitor stuff then I can fix, but having done some reading I think I know what it is already.


(Hemant Gupta) #50

Ok, I got it to connect using that system monitor app (Termite) that you linked.

When I click Arm Away on the web interface, it spits out this:

Arm Away Command received from Web
0Da110062450038

And then it stops responding.

After rebooting. this is what I get when I do instant arm:
Arm Home command received from Web
0Da210062450037

Then it stops responding.
After rebooting I tried the disarm command, and it spits out this:
Disarm command received from Web
0Da010062450039

I hope that is enough to help. Let me know if there is anything else you need me to run on it.


(cjcharles) #51

Ok, how strange it idoesnt show any other messages. Can you try with this firmware instead and hopefully you will see some more info


(Hemant Gupta) #52

Got it! Here you go!
Note that for this firmware, I didn’t have to reboot. It seems to stay connected.

Disarm command received from Web
0Da010062450039

Message sent
17IC00000000000000100007B
?(Ü @[01]
1EAS000000001111111100000000000E
1EAS000000001111111100000000000E

Arm Away:
Arm Away Command received from Web
0Da110062450038

Message sent
17IC00000000000000100007B
?(Ü @[01]
1CLD1173001112200714000718004D
0ACC023100E3
1EAS000000001111111100000000000E
1EAS10000000411111
1100000000000A
0714000718004D
0ACC023100E3
1EAS000000001111111100000000000E
1EAS10000000411111
1EAS1000000031111111000000002CF6
0FEE10045045100DC
000001111111100

Disarm:
Disarm command received from Web
0Da010062450039

Message sent
17IC00000000000000100007B
?(Ü @[01]
1CLD1174001112210714000718004B
0FEE10000000000EF
0ACC023000E4
1EAS100000003111111100000000000B

1EAS000000001111111100000000000E
E10000000000EF
0ACC023000E4
1EAS100000003111111100000000000B

16XK4021127140718110006E
ÿ?ÆV @E
E10000000000EF
0ACC023000E4
1EA

Arm Home:
Arm Home command received from Web
0Da210062450037

Message sent
17IC00000000000000100007B
1CLD1173001112220714000718004B
1EAS000000001111111100000000000E
000
1EAS2000000041111111000000000009
3001112220714000718004B
1EAS00000
0FEE10045045200DB
10000ˆ[03]ÿ?ÆV @
3001112220714000718004B
1EAS00000
1EAS2000000031111111000000002CF5
3001112220714000718004B
1EAS00000
16XK10221271407181100070
ÿ?ÆV @
3001112220714000718004B
1EAS00000


(Hemant Gupta) #53

Also, all of the arm/disarm commands worked!


(cjcharles) #54

Great, were getting there, so all that garbage is what I now need to interpret into doing more useful things such as checking arm status and zone status! At least you now have the option to auto arm/disarm reliably through ST!

I’ll do some reading about a library and see what I can pull in next


(Hemant Gupta) #55

Awesome! Thanks so much! I am getting excited about this!


(Brent Crotts) #56

New firmware is working for me also!


(Dale Lenard) #57

New firmware working for me also.

I managed to get the device handler working.

Does anyone know what I would have to change in the device handler so that when mode is set to away it would arm the alarm and when it is set to Home it would disarm?

For the life of me I can find a setting that allows me to set it up, the routines only allow lights and switches.


(Dale Lenard) #58

As a side note, I set the smart home monitor, but when selecting arm it doesn’t arm either.

I’m sure I’m missing something.


(cjcharles) #59

Smart home monitor is totally separate to an alarm device, Samsung dont let anything go into their Smart Home Monitor except for sensors and bell devices. You’ll need to use WebCore or CoRE to set the alarm, and you can do that by creating a simple rule which detected when Smart Home Monitor changes to away/Home/… then set the “Alarm Panel Device” handler to off (disarm), strobe (arm home), or siren (arm away).


(Sturgeon637) #60

I’m late to the game but I was able to arm/disarm the alarm from the NodeMCU webpage. I’m off to working with the ST.
Thanks everyone!