Giter VIP home page Giter VIP logo

Comments (16)

pergolafabio avatar pergolafabio commented on June 11, 2024 1

from risco-mqtt-bridge.

pergolafabio avatar pergolafabio commented on June 11, 2024

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

from risco-mqtt-bridge.

pergolafabio avatar pergolafabio commented on June 11, 2024

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

from risco-mqtt-bridge.

rob1981forest avatar rob1981forest commented on June 11, 2024

from risco-mqtt-bridge.

pergolafabio avatar pergolafabio commented on June 11, 2024

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 :(

#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:

  • platform: mqtt
    state_topic: "riscopanel/eventhistory"
    name: risco_event

from risco-mqtt-bridge.

rob1981forest avatar rob1981forest commented on June 11, 2024

from risco-mqtt-bridge.

pergolafabio avatar pergolafabio commented on June 11, 2024

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

from risco-mqtt-bridge.

lucacalcaterra avatar lucacalcaterra commented on June 11, 2024

from risco-mqtt-bridge.

rob1981forest avatar rob1981forest commented on June 11, 2024

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 !!??

from risco-mqtt-bridge.

pergolafabio avatar pergolafabio commented on June 11, 2024

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

from risco-mqtt-bridge.

rob1981forest avatar rob1981forest commented on June 11, 2024

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' ?

from risco-mqtt-bridge.

rob1981forest avatar rob1981forest commented on June 11, 2024

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.

from risco-mqtt-bridge.

pergolafabio avatar pergolafabio commented on June 11, 2024

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

from risco-mqtt-bridge.

rob1981forest avatar rob1981forest commented on June 11, 2024

from risco-mqtt-bridge.

pergolafabio avatar pergolafabio commented on June 11, 2024

its for sure an option , i have enabled them all

from risco-mqtt-bridge.

lucacalcaterra avatar lucacalcaterra commented on June 11, 2024

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:

  • platform: mqtt
    state_topic: "riscopanel/armstatus"
    command_topic: "riscopanel/armstatus/SET"
    payload_disarm: "disarmed"
    payload_arm_home: "partially"
    payload_arm_away: "armed"

from risco-mqtt-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.