lucacalcaterra / risco-mqtt-bridge

Risco Alarm panel to MQTT Server Bridge
MIT License
25 stars 9 forks source link

Beta version in docker #18

Closed rob1981forest closed 4 years ago

rob1981forest commented 5 years ago

Hi, I have the main release running fine in docker for a while now - thanks a lot !

Is there anyway I can use the beta version in docker ? I run Hass in docker on a synology and would like to mess about with the detectors and event log integration the beta release has....

Thanks a lot

pergolafabio commented 5 years ago

Yeah , wanna know this too, I want also event integration and want to see how that autodiscovery works

Op wo 26 jun. 2019 19:25 schreef rob1981forest notifications@github.com:

Hi, I have the main release running fine in docker for a while now - thanks a lot !

Is there anyway I can use the beta version in docker ? I run Hass in docker on a synology and would like to mess about with the detectors and event log integration the beta release has....

Thanks a lot

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lucacalcaterra/risco-mqtt-bridge/issues/18?email_source=notifications&email_token=AKJ7LQCIGOQI7XTKQ3A5E4DP4ORBTA5CNFSM4H3UOP22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G33XCPA, or mute the thread https://github.com/notifications/unsubscribe-auth/AKJ7LQBWF2CB6VZYYYRF2BTP4ORBTANCNFSM4H3UOP2Q .

pergolafabio commented 5 years ago

for testing i created sensors like below , but the state is always unknown :)

sensor:
  - platform: mqtt
    state_topic: "riscopanel/eventhistory"
    name: risco_event

  - platform: mqtt
    state_topic: "riscopanel/dects"
    name: risco_dects
pergolafabio commented 5 years ago

nevermind, unknown state is fixed, seems HA cant handle more then 255 characters, limitation of sensor, so need to truncate it

rob1981forest commented 5 years ago

I tried this tonight and couldn't make it work...

What do I need to do ? How could I get HA to display a list of events ? Don't we need a 'value_topic' ? The github suggests we need some json

Get Outlook for Androidhttps://aka.ms/ghei36


From: pergolafabio notifications@github.com Sent: Wednesday, June 26, 2019 8:46:19 PM To: lucacalcaterra/risco-mqtt-bridge Cc: rob1981forest; Author Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Beta version in docker (#18)

for testing i created sensors like below , but the state is always unknown :)

sensor:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/18?email_source=notifications&email_token=ALCGLUFXYQNPRNG7MUK5AM3P4PBQXA5CNFSM4H3UOP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUTXNA#issuecomment-506018740, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALCGLUBZ6R5JUJWQS5HNNOTP4PBQXANCNFSM4H3UOP2Q.

pergolafabio commented 5 years ago

well, seems the events arent in real time, see my last reply here

what do you want todo? you want to start an automation based on last event? then create a sensor like this below, but problem is that the event isnt in the polling interval, so its not changed immediately :(

https://github.com/lucacalcaterra/risco-mqtt-bridge/issues/13

so for my automations based on armstate, i still use for now the email sensor in HA, that one is changed within 5 seconds, instead of 5 minutes

sensor:

rob1981forest commented 5 years ago

Thanks, just messing about at moment

What I have noticed is I don't get any update when the alarm is going off and as such I cant make my lights flash !

Seems like I need to subscribe to another topic for that to happen.........

Will try what you say out.......thanks a lot

Get Outlook for Androidhttps://aka.ms/ghei36


From: pergolafabio notifications@github.com Sent: Thursday, June 27, 2019 9:52:31 PM To: lucacalcaterra/risco-mqtt-bridge Cc: rob1981forest; Author Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Beta version in docker (#18)

well, seems the events arent in real time, see my last reply here

what do you want todo? you want to start an automation based on last event? then create a sensor like this below, but problem is that the event isnt in the polling interval, so its not changed immediately :(

13https://github.com/lucacalcaterra/risco-mqtt-bridge/issues/13

so for my automations based on armstate, i still use for now the email sensor in HA, that one is changed within 5 seconds, instead of 5 minutes

sensor:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/18?email_source=notifications&email_token=ALCGLUGWGKPB57DKNZUHOKDP4USA7A5CNFSM4H3UOP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYYK4MA#issuecomment-506506800, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALCGLUHRPUO2QQYKSMZ2KMLP4USA7ANCNFSM4H3UOP2Q.

pergolafabio commented 5 years ago

Yeah, subscribe to it, and have a look if the message is instant.,. If not. Then you can also use the email sensor

lucacalcaterra commented 5 years ago

Must get some time to re test and exploit to you how config it. Please be patient . Thanks

Il Gio 27 Giu 2019, 23:20 pergolafabio notifications@github.com ha scritto:

Yeah, subscribe to it, and have a look if the message is instant.,. If not. Then you can also use the email sensor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lucacalcaterra/risco-mqtt-bridge/issues/18?email_source=notifications&email_token=AAGWZUNUHETPVFQECFEL7HTP4UVK7A5CNFSM4H3UOP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYYNFMY#issuecomment-506516147, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGWZUJV77OYFJMY3IYHFW3P4UVK7ANCNFSM4H3UOP2Q .

rob1981forest commented 5 years ago

yeah so been messing with the 'last event' and it seems it can take nearly an hour for my home assistant to update from the events in Risco cloud app. I'm not too bothered about this but i have a sensor for whether or not the alarm is triggered (is either true or false as per the guide) - does this mean that could take about an hour to update as its using the same polling mechanism ? is there a better way to get an instant notification into HA about the alarm going off so i can make my house lights flash red !!??

pergolafabio commented 5 years ago

no, the state is still an issue , if @lucacalcaterra can add the lastevent also in the polling , then it should be ok, then it should work problem is at risco itself, you see the slider also with a delay changing ...

if you want the state immediately, then create an email sensor, thats what i do, email events are instant sended from risco, no delay there, so i created sensors , and i look in the body for a word for example => armed => automation, turn off all lights and stuff

rob1981forest commented 5 years ago

the transforms file has a section about 'onalarm' being translate to 'triggered' - should the alarm_control_panel.mqtt_alarm entity in HA update to 'triggered' in the event of the alarm going off ? are is the only 3 states this does 'disarmed' 'armed_away' and 'aremd_home' ?

rob1981forest commented 5 years ago

ive just looked and i dont seem to get an email from risco cloud if the alarm is going off, only alerts in the app so for automations via email i dont think it would work.

pergolafabio commented 5 years ago

you need to setup email notifications on www.riscocloud.com i created a "follower" there, to receive emails about alarm status those email are sended to a seperate gmail inbox that gmail inbox i am polling every 5 seconds in HA, so when new mail received, automation kicks in

rob1981forest commented 5 years ago

Ok cheers, I thought I ticked every possible option on it......just assumed email wasn't an option for alarm going off.....will take another look.....thanks

Get Outlook for Androidhttps://aka.ms/ghei36


From: pergolafabio notifications@github.com Sent: Sunday, June 30, 2019 8:23:16 PM To: lucacalcaterra/risco-mqtt-bridge Cc: rob1981forest; Author Subject: Re: [lucacalcaterra/risco-mqtt-bridge] Beta version in docker (#18)

you need to setup email notifications on www.riscocloud.comhttp://www.riscocloud.com i created a "follower" there, to receive emails about alarm status those email are sended to a seperate gmail inbox that gmail inbox i am polling every 5 seconds in HA, so when new mail received, automation kicks in

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/lucacalcaterra/risco-mqtt-bridge/issues/18?email_source=notifications&email_token=ALCGLUEDCVOGCQSJKBQOS6TP5EB2JA5CNFSM4H3UOP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY4SCTQ#issuecomment-507060558, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALCGLUBTTZXFVZFTLC7BAJTP5EB2JANCNFSM4H3UOP2Q.

pergolafabio commented 5 years ago

its for sure an option , i have enabled them all

lucacalcaterra commented 5 years ago

Hi, I have the main release running fine in docker for a while now - thanks a lot !

Is there anyway I can use the beta version in docker ? I run Hass in docker on a synology and would like to mess about with the detectors and event log integration the beta release has....

Thanks a lot

Autodiscovery works... need to activate discovery in mqtt broker connection on H.A. For the alarm panel you need to add this lines to your configuration.yaml (accordiing to your states)

alarm_control_panel: