Tertiush / ParadoxIP150v2

Python-based IP150 'middle-ware' that uses the IP module's software port for monitoring and control of the alarm via an MQTT Broker.
Eclipse Public License 1.0
73 stars 35 forks source link

SP6000 is also supported #1

Closed kisPocok closed 8 years ago

kisPocok commented 8 years ago

Hi Tertiush,

Thank you for sharing this codes! It work like a charm with my SP6000 board + IP150.

MQTT I wasn't familiar with MQTT so it took a time to find a working server/broker. The easiest way to try it is a public broker. Choose one from here, enter it's ip to the config.ini. https://github.com/mqtt/mqtt.github.io/wiki/public_brokers

The README must tell about it. Thanks again!

Tertiush commented 8 years ago

Thanks for letting me know, will add to the list. Regarding MQTT I must admin I assumed people will know [obviously not always true], will add a one-liner. However I wouldn't encourage the use of public brokers with your alarm system due to privacy. thanks again

erokoder commented 6 years ago

kisPocok, are you edit some code in plugin and config.ini? Because I have some error in log after connect to alarm system: INFO: Socket connection closed bz remote host> -1 ERROR State02:Error attempting connection to IP module (1): 'NoneType' object has no attribute 'getitem'

http://prntscr.com/j17e63

kisPocok commented 6 years ago

@radebebek My last IP150 burned down 🔥So, I decided to not continue my research. Check the .py code, search for NoneType that should be the problem (it has to have a type).

erokoder commented 6 years ago

@kisPocok NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None. That usually means that an assignment or function call up above failed or returned an unexpected result.
Maybe have missed something when configuring config.ini? Are you working without problems with this plugin? This plugin has nothing with burned IP150?

kisPocok commented 6 years ago

This plugin has nothing with burned IP150?

Not at all. Over current/surge happened.

Are you working without problems with this plugin?

As I remember, yes.

erokoder commented 6 years ago

Thanks a lot, I'll try to find the mistake.

erokoder commented 6 years ago

@kisPocok @Tertiush I can find mistake, How did you make config.ini files? Are you change this with SP6000

Alarm_Model = ParadoxMG5050          
Alarm_Registry_Map = ParadoxMG5050    
Alarm_Event_Map = ParadoxMG5050        
Zone_Amount = 32