Satel integra

ok, I will.

Until the next release, please note that hassio 0.84.3 (and very possibly some previous versions) throws the following message:

Ignoring alarm status message, same state
6:01 PM components/alarm_control_panel/satel_integra.py (WARNING)
Ignoring alarm status message, same state
6:01 PM components/alarm_control_panel/satel_integra.py (WARNING)
Ignoring alarm status message, same state
6:01 PM components/alarm_control_panel/satel_integra.py (WARNING)
Ignoring alarm status message, same state
6:01 PM components/alarm_control_panel/satel_integra.py (WARNING)

This come ALL the time in a repeated way.

Any idea why?

I believe that first bullet point is solved in nyxnyx repo (see forks of your repo). ā€œWorks for me ā„¢ā€ :wink:

Could you please take a look also on reconnecting? Itā€™s not that often but sometimes HA loses connectivity to Satel and as far as I can tell doesnā€™t try to reconnect. I need to restart HA to re-establish connection which can be PITA.
Also
Ignoring message: bā€™\xeeā€™
is spamming logs. Could you move that to DEBUG level?
TIA

Yes, I have pretty good idea why - Iā€™ve screwed up a bit :slight_smile:

The way Satel reports itā€™s ā€œarmedā€ state casuses multiple notifications about the same state. In the component I thought it shouldnā€™t happen and Iā€™ve made it a warning.
In fact, this is quite ā€œnormalā€ behavior.

Can you please raise a bug against it so it doesnā€™t get forgotten?
Iā€™m planning on working on this component soon enough, and this one is fairly easy to fix.

Thanks!

So the first point has indeed been addressed by nyxnyx, and I have managed to finally get it merged in, so hopefully this issue will go away with the next release.

Regarding reconnecting - Iā€™ve made some effort to reconnect once weā€™ve lost connectivity, but indeed it doesnā€™t work robust enough: I catch one exception but when another happens (as it often does) - Iā€™m dead in the water.

Can you raise a bug on this?

I should be able to get this fixed.

Good news that youā€™re workinā€™ on it.
Unfortunately my Satel Integra Alarm is broken en canā€™t help you testing at the moment.
I hope to buy a new motherboard soon.
Keep up the good work.

Thanks c-soft

Hi, great job with the component, works great!

i have an issue, i lost 3 binary sensors since i upgrade to 0,86, any idea?

Not working full greatā€¦ because sometime status alarm show as UNKNOWN.

Hi,
Any news about adding support for ETHM-1??

Any updates pls? :slight_smile:

hi i have a problem with satel_integra too. i donā€™t have any info from satel, and this was all working in past. somebody know when will the bug be fixed? or any solution?

OK, folks, thanks for waiting.
Some news for you:

  1. New version is merged into the core, so with the next release it should work stable. It works fine for me, including arming & disarming.
  2. If you want you can test out brand new version of this component, with additional features: partitions support (ā€œstrefyā€ in Polish) and setting outputs. Be warned: new config scheme is different from the old one, no compatibility - see below.

Hereā€™s how to do it:

  1. Download component from here: https://www.dropbox.com/s/t3449xjoiugnyu4/satel_integra.zip?dl=0
  2. Unpack contents of the zip to your <config-dir>/custom_components so e.g. in my case *.py files are located here: \\HASSIO\config\custom_components\satel_integra
  3. Make sure you are using recent version (at least 0.88, otherwise it wonā€™t work properly!)
  4. Configure your component. See example below. zones and outputs work as they do now - they show up as binary sensors. partitions are represented by separate alarm panels. switchable_outputs are represented as switches.
  5. Give it a go, test it out, comment. Iā€™m pretty sure there are some issues, but it works quite allright for me now. Cheers!
satel_integra:
  host: 192.168.2.230
  port: 7094
  code: !secret alarm_code  
  partitions:
    01:
      name: 'Dom'
      arm_home_mode: 2
    02:
      name: 'Kontaktrony'
    03:
      name: 'Garage'
      arm_home_mode: 1   
  outputs:
    6:
      name: 'Dawn sensor'
      type: 'light'
  zones:
    01:
      name: 'czujka wejście'
      type: 'motion'
    02:
      name: 'hol'
      type: 'motion'
    03:
      name: 'wc dĆ³Å‚'
      type: 'motion'
    05:
      name: 'salon'
      type: 'motion'
  switchable_outputs:
    8:
      name: 'Brama garaż'
    9:
      name: 'Otwarcie bramy'
    10:
      name: 'Zamknięcie bramy'
3 Likes

At the moment when the DloadX program is determined by the input-based state, the switch does not work properly.


For example, pulse control (1s) with a garage door: The button opens the gate but it will not close it.

The solution for me was the template switch.

  - platform: template
    switches:
      brama_wjazdowa:
        friendly_name: "Brama Wjazdowa"
        value_template: "{{ is_state('binary_sensor.brama_wjazdowa', 'on') }}"
        turn_on:
          service: switch.turn_on
          data:
            entity_id: switch.brama_wjazdowa2
        turn_off:
          service: switch.turn_on
          data:
            entity_id: switch.brama_wjazdowa2
        icon_template: >-
          {% if is_state('binary_sensor.brama_wjazdowa', 'on') %}
            mdi:garage-open
          {% else %}
            mdi:garage
          {% endif %}
1 Like

For everybody else having this issue: this is by design.

Status of the switch changes when itā€™s notified from Satel module. In this configuration Satel does not send update about changed output, and thus switch stays in previous state.

One possible workaround would be to introduce optional ā€œoptimisticā€ approach just as they do in MQTT switch, but that only assumes that switch was changed, without confirmation too.

This template solution above sounds much better.

Can you explaine more this section ? It is polish STREFA ? Why on some is arm_home_mode: 2 but on some is arm_home_mode: 1 but on some nothing ? For what is arm_home_mode ?

And i have an error on new version 0.3.4

Invalid config for [satel_integra]: expected int for dictionary value @ data[ā€˜satel_integraā€™][ā€˜partitionā€™]. Got OrderedDict([(1, OrderedDict([(ā€˜nameā€™, ā€˜Domā€™), (ā€˜arm_home_modeā€™, 1)]))]). (See /home/homeassistant/.homeassistant/configuration.yaml, line 158). Please check the docs at Satel Integra - Home Assistant

My config example:
satel_integra:
host: 192.168.13.10
port: 7094
code: 12345
partition:
01:
name: ā€˜Domā€™
arm_home_mode: 1
zones:
01:
name: ā€˜Wejście 1ā€™
type: ā€˜motionā€™
15:
name: ā€˜Wejście 15ā€™
type: ā€˜openingā€™

What is wrong ?

Please read original docs and my post carefully - there are all the answers. You got wrong config word, itā€™s partitions not partition.

But please explaine what is arm_home_mode: 1 or arm_home_mode: 2 or nothing(empty)?

Quote from: Satel Integra - Home Assistant :

arm_home_mode
(integer)(Optional)The mode in which arm Satel Integra when ā€˜arm homeā€™ is used. Possible options are 1 , 2 or 3 . For more information on what are the differences between them, please refer to Satel Integra manual.

Default value: 1

On new version 0.3.4ā€¦ it not workingā€¦no found any device from alarmā€¦ Now configuration is ok but i not found any deviceā€¦

Error during setup of component satel_integra
Traceback (most recent call last):
File ā€œ/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.pyā€, line 154, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
AttributeError: module ā€˜custom_components.satel_integraā€™ has no attribute ā€˜setupā€™

Interesting - can you attach full log please? What platform is it? There were no important changes around that, so itā€™s surprising error. I wonder if anybody else sees that?