TJForc / risco-lan-bridge

risco-lan-bridge is a "bridge" between a node.js application and a Risco Panel
Other
21 stars 12 forks source link

Q: cloud vs local access #1

Closed pergolafabio closed 1 year ago

pergolafabio commented 3 years ago

Hi, as discussed earlier in the other thread, ypu reverse engineerd the CS software, so for people with older TCP modules (only 1 socket), its not possible to make use of this project if cloud is enabled

Since you use the CS instructions, can you make it possible to connect to the panel through cloud with this info below, so its only the connection string thats different

image

PS: offcourse, this only possible for people who have an risco installer account, this is not possible with normal cloud accounts

Also another question, why do you default disable riscocloud when you run this project? // Defines if the plugin should deactivate RiscoCloud on the control panel (Optional) Disable_RiscoCloud: true,

TJForc commented 3 years ago

Technically, it is possible to program a tcp proxy which can be inserted between the central and the cloud and which would allow you to insert commands but unless you have access to the dns on the network, it will not be to my knowledge not possible to create a "transparent" proxy, this will therefore require having control over the configuration of the control panel to indicate the IP address of the proxy, then the proxy will take care of transmitting the frames to RiscoCloud.

Regarding the deactivation of the Cloud at the level of the panel itself, it is not necessary to have an installer account and to use the software "Configuration Software", all the modifications can be made from the keyboard, from where the importance of knowing the installer code to access the configuration (the programming manuals are all downloadable from the internet with the description of the corresponding menus).

Finally, concerning my choice to deactivate the RiscoCloud by default, this comes from two points:

pergolafabio commented 3 years ago

ok, interesting, ok, gonna update my TCP module then :-) i dont think risco is able to push firmware though, only installers do this normally... i also sometimes prefer to use the risco app, its usefull for push messages when the alarm goes of and watch the video streams

robertboccia commented 3 years ago

There was someone who was busy with the local risco solution that onfreund was talking to. I assume this is the same one, essentially onfreund was saying the node package has to be converted to a python package to be used for home assistant, this would be first prize, the risco app is a joke to be honest and until the existing integration broke a week or so ago I stopped using their app last year already, the integration that was working armed and disarmed far quicker than their own app. If we could get a local integration working that would be amazing. I am running a prosysplus panel and have spent tons on my risco Alarm in excess of 10k usd, but it has to be something that works inside home assistant, since all my automation is inside home assistant, I was polling risco every second as I was using pir sensors to drive light automations.

I am not sure how close the change to a python package is but that according to onfreund would solve our issue.

Robert Boccia


From: pergolafabio @.> Sent: Saturday, July 24, 2021 3:06:32 PM To: TJForc/risco-lan-bridge @.> Cc: Subscribed @.***> Subject: Re: [TJForc/risco-lan-bridge] Q: cloud vs local access (#1)

ok, interesting, ok, gonna update my TCP module then :-) i dont think risco is able to push firmware though, only installers do this normally... i also sometimes prefer to use the risco app, its usefull for push messages when the alarm goes of and watch the video streams

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTJForc%2Frisco-lan-bridge%2Fissues%2F1%23issuecomment-886051173&data=04%7C01%7C%7C7230c06a64c84e4d0c9e08d94ea3dc9b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637627287944671661%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Cx%2B5cpym4DW2WsQ%2FJz6UA1Wjn0Q71MDBt7lisJcy3Q8%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAR4IWBH3HQPL6KO3IN77PCDTZK3FRANCNFSM5A5MMRHQ&data=04%7C01%7C%7C7230c06a64c84e4d0c9e08d94ea3dc9b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637627287944681665%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=usx%2BasgZ9FyzbR%2FMFyvSTouzJZrtnRJQ0NQYeLrfu9U%3D&reserved=0.

robertboccia commented 3 years ago

Hi

Are you in touch with onfreund with regards to your local lan development and creating the python package?

From: TJForc @.> Sent: Saturday, 24 July 2021 15:00 To: TJForc/risco-lan-bridge @.> Cc: Subscribed @.***> Subject: Re: [TJForc/risco-lan-bridge] Q: cloud vs local access (#1)

Technically, it is possible to program a tcp proxy which can be inserted between the central and the cloud and which would allow you to insert commands but unless you have access to the dns on the network, it will not be to my knowledge not possible to create a "transparent" proxy, this will therefore require having control over the configuration of the control panel to indicate the IP address of the proxy, then the proxy will take care of transmitting the frames to RiscoCloud.

Regarding the deactivation of the Cloud at the level of the panel itself, it is not necessary to have an installer account and to use the software "Configuration Software", all the modifications can be made from the keyboard, from where the importance of knowing the installer code to access the configuration (the programming manuals are all downloadable from the internet with the description of the corresponding menus).

Finally, concerning my choice to deactivate the RiscoCloud by default, this comes from two points:

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTJForc%2Frisco-lan-bridge%2Fissues%2F1%23issuecomment-886050334&data=04%7C01%7C%7Cb6e71a0a74d94eb7afa108d94ea2e946%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637627283865197258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=H0S6DMFkgDzl8aYxV%2FTGbkFPXg7Mlvm%2BhhsKmzY6A8w%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAR4IWBD4TTRSYKPWNTZ7LSTTZK2MBANCNFSM5A5MMRHQ&data=04%7C01%7C%7Cb6e71a0a74d94eb7afa108d94ea2e946%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637627283865197258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0zah%2BDAWXmBSuOOKT2HsupGw9S6DOi2HJ9%2FqAJwoFOA%3D&reserved=0.

TJForc commented 3 years ago

Not at the moment and for at least 3 reasons:

Now, if a developer wishes to stick to it, I remain open for explanations on the protocol that I am starting to have well understood.

When the code is in version 1.x.x, it will be time to switch to a port to another language. As a paliative solution, it seems to me that it is possible to recover HomeKit devices with HA (but I could be wrong), this would allow to wait for the time of the development of the code under Python (of course, once the HomeBridge part will be functional, which should happen fairly quickly).

TJForc commented 2 years ago

Also another question, why do you default disable riscocloud when you run this project? // Defines if the plugin should deactivate RiscoCloud on the control panel (Optional) Disable_RiscoCloud: true,

@pergolafabio, version 0.9.8 will offer the possibility of reactivating the RiscoCloud, your question made me think about the subject and it seems to me preferable to add an option allowing it if we take into account the fact that all the users will not necessarily have the possibility of reactivating it by themselves otherwise.

@robertboccia, the ongoing integration for Homebridge is well under way from what gawindx told me. For my part, it remains to integrate the "Proxy" mode, I could then see if it is possible to port the code under Python.

robertboccia commented 2 years ago

I'm after integration for home assistant

pergolafabio commented 2 years ago

Have you found someone to convert to Python.

robertboccia commented 2 years ago

No not yet

robertboccia commented 2 years ago

Also another question, why do you default disable riscocloud when you run this project? // Defines if the plugin should deactivate RiscoCloud on the control panel (Optional) Disable_RiscoCloud: true,

@pergolafabio, version 0.9.8 will offer the possibility of reactivating the RiscoCloud, your question made me think about the subject and it seems to me preferable to add an option allowing it if we take into account the fact that all the users will not necessarily have the possibility of reactivating it by themselves otherwise.

@robertboccia, the ongoing integration for Homebridge is well under way from what gawindx told me. For my part, it remains to integrate the "Proxy" mode, I could then see if it is possible to port the code under Python.

I'm not sure if there are any different things for prosys plus which is the panel I have

TJForc commented 2 years ago

I'm not sure if there are any different things for prosys plus which is the panel I have

@robertboccia , I'm not sure I fully understand what you mean.

Theoretically, this code is compatible with all Risco control panels which can be configured via the "Configuration Software". I took into account the specifications of each type of control panel for the number of zones, outputs, partitions, etc. I have also taken into account the firmware versions for which the maximum number of zones or outputs have been modified.

For the Prosys, however, I did not take into account the detector above 128, which are unlocked by license.

If you want to validate the functioning of the code with your system, the easiest way would be to test it (under Windows with Visual Studio Code).

You could see if it is compatible or not (And for my part it could allow to validate or correct the operation with a Prosys because for the moment I have not had any feedback except my own installation and that of @gawindx but unfortunately we are both equipped with a LightSys with a recent ip module).

robertboccia commented 2 years ago

Message me on robert.boccia@live.co.za let's chat about details there

TJForc commented 2 years ago

@robertboccia Did you manage to communicate with your Prosys? It seems that communication with Prosys does not go so well in practice. For the moment I do not have access to this model of central to be able to understand what is happening.

robertboccia commented 2 years ago

Hi I haven't tried,

Robert Boccia


From: TJForc @.> Sent: Tuesday, October 26, 2021 7:16:06 PM To: TJForc/risco-lan-bridge @.> Cc: Robert Boccia @.>; Mention @.> Subject: Re: [TJForc/risco-lan-bridge] Q: cloud vs local access (#1)

@robertbocciahttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frobertboccia&data=04%7C01%7C%7Cbc487c2678574de49b8d08d998a44d3c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637708653699199724%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SircotkTeCwmYQ3HT9SbrhC5pGuYeUo42RlPqWjzIRM%3D&reserved=0 Did you manage to communicate with your Prosys? It seems that communication with Prosys does not go so well in practice. For the moment I do not have access to this model of central to be able to understand what is happening.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTJForc%2Frisco-lan-bridge%2Fissues%2F1%23issuecomment-952145908&data=04%7C01%7C%7Cbc487c2678574de49b8d08d998a44d3c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637708653699199724%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Xa8I1lH2oL7ZlQD3AAf%2FN7%2BKjcZEUJks9mVggD9Bjec%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAR4IWBFBDEQFVBEXCOJG3Y3UI3O5NANCNFSM5A5MMRHQ&data=04%7C01%7C%7Cbc487c2678574de49b8d08d998a44d3c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637708653699209716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HIL96sqLyCCq7E%2B%2Bl5N1Wtb9qBQ6L%2BFoR2Lpz7miA1M%3D&reserved=0.

mrbarbz commented 2 years ago

Can someone assist in helping get CS.

pergolafabio commented 2 years ago

Do you mean the CS software?

mrbarbz commented 2 years ago

Do you mean the CS software?

Yes please

pergolafabio commented 2 years ago

just google it , enough places where you can download it example : https://ftp.secplan.de/Anleitungen/RISCO/Software/

mrbarbz commented 2 years ago

Is there any special way I need to install it, I keep getting database error.

Risco r

pergolafabio commented 2 years ago

Yes, there is another tool installer also, system initializer , you first need to create the database

mrbarbz commented 2 years ago

initializer

Database issues fixed thanks

mrbarbz commented 2 years ago

I've been searching and trying for weeks before posting my issue. I don't know where to ask either.

I can't seem to connect to my Alarm panel via CS software, both TCP and Cloud. Also tried connecting locally via docker image (@vanackej/risco-mqtt-local) but I can never get a connection

I've forwarded ports 33000 and 34000 on my router, doubled checked the panel ID

The Error Codes I get on CS software are 20014 Error20014

20016 Error20016

Cancelled by user ErrorCancelled

The log in the docker image is "panel is not connected, waiting", "Socket timed out", "TCP socket is disconnected". ErrorDocker

Any help will be highly appreciated.

pergolafabio commented 2 years ago

first of all, do you have an old board? what firmware? level 2.x ? if yes, then its normal that you cant accss your panel The TCP module can only allow 1 connection to it

3 options :

To the screenshots above, if you have the old TCP board , with firmware 2.x , then its normal behaviour you cant connect to your panel, only if you disable cloud access, but you need todo it on a keypad, with the master installer code Afterwards you can make use of the software

mrbarbz commented 2 years ago

How can I tell which board version I have?

Here is a picture but not sure if that helps. The sticker has V3.91 RiscoPanelSW

pergolafabio commented 2 years ago

hmm, no idea, never looked at it :-)

can you check if your port is open on the board? port 1000

mrbarbz commented 2 years ago

If the IP module was the old module, shouldn't the Cloud connection on the SC software still work? I can connect to my panel via the Risco cloud app, browser, and Home Assistant intergration.

Here are some of the settings, hopefully, you can see something I don't see

Controls listener_port IP_port Remote ID

CS_Cloud CS_Configuration

pergolafabio commented 2 years ago

The current home Assistant integration also uses the cloud... Check if your port 1000 is open, if it is, then you have the new TCP module, if it's not, you need to disable cloud or use the proxy, see previous reply

mrbarbz commented 2 years ago

How can I check if it's open?

pergolafabio commented 2 years ago

With nmap for example, just Google enough tools

nmap –p 1000 192.168.0.1

mrbarbz commented 2 years ago

Did a scan, Not sure what that means

nmap

mrbarbz commented 2 years ago

Does that mean installer has blocked it

pergolafabio commented 2 years ago

try this project : https://github.com/vanackej/risco-mqtt-local

mrbarbz commented 2 years ago

I have tried it, I get socket Socket timed out error.

I also raised an issue vanackej closed it and wasn't resolved

mrbarbz commented 2 years ago

https://github.com/vanackej/risco-mqtt-local/issues/13

mrbarbz commented 2 years ago

Because I can't connect to cloud via CS software. I'm guessing this is a limitation from the installer.

If I was to factory reset, would that remove the installer and allow me to assign myself as new installer?

pergolafabio commented 2 years ago

you dont need a factory reset, just call risco, ask to remove the panel from the installer account, then you create an installer account, and attached the panel id to your new account

done!

mrbarbz commented 2 years ago

Oh cool.. Easier than factory reset Who's or what is dobiss

pergolafabio commented 2 years ago

i mean "risco" , type error :-)

mrbarbz commented 2 years ago

Oh ok thanks

Sylanorr commented 2 years ago

Hi everyone ! I'm using this Plugin on Homebridge (The Homebridge Risco Local Platform from Gawindx https://github.com/gawindx/homebridge-risco-local-platform#readme).

I just wanna know if I can use the Proxy method for using both Risco cloud and local connexion with my old Lightsys 2 (single connexion) on Homebridge ?

Thank you

pergolafabio commented 2 years ago

Hi everyone ! I'm using this Plugin on Homebridge (The Homebridge Risco Local Platform from Gawindx https://github.com/gawindx/homebridge-risco-local-platform#readme).

I just wanna know if I can use the Proxy method for using both Risco cloud and local connexion with my old Lightsys 2 (single connexion) on Homebridge ?

Thank you

Yes, that's the purpose of the proxy

Sylanorr commented 2 years ago

Hello and thank you.

Either I'm doing it really wrong, or it's not possible to make it work.

I use this plugin: https://github.com/gawindx/homebridge-risco-local-platform#readme which has for dependency the Risco-Lan-Bridge of TJForc.

I wonder if the code related to the Proxy has been integrated in the plugin I'm using ... Because I have no reference to it when I consult my logs (and even in debug).

Please, can someone who has managed to get the Proxy mode working via Homebridge tell me what they did to get it working?

FYI, I have an old network card that only accepts one connection on a Lightsys 2 control unit

Here is what I did:

I changed the cloud IP of my panel to the IP of my raspberry Pi that hosts Homebridge (192.168.0.18) and left the port at 33000.

Here is my config file:

{ "platform": "RiscoLocalAlarm", "name": "RiscoLocalAlarm", "Panel_IP": "192.168.0.11", "Panel_Port": 1000, "Panel_Model": "lightsys", "Panel_Password": 5678, "Panel_Key": 1, "AutoDiscover": true, "Enable_RiscoCloud": true, "SocketMode": "proxy", "ListeningPort": 33000, "CloudPort": 33000, "CloudUrl": "www.riscocloud.com", "OccupancyPreventArming": false, "Partition": "all", "Outputs": "all", "Detectors": "none" }

This works locally, but riscocloud never connects...

Please help (My mail : sylanor@gmail.com)

pergolafabio commented 2 years ago

proxy works for me, allthough using HA , not homebridge, i also have older lightsys :-)

but using this rewritten project : https://github.com/vanackej/risco-mqtt-local

Sylanorr commented 2 years ago

I think this may be the problem, the proxy is not implemented on the Gawindx fork.

Maybe I should migrate to HA.