question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[satel-integra integration] Unable to switch switable_output sequentially

See original GitHub issue

The problem

When using script it’s impossible to control two or more switchable_outputs sequentially. Workaround: add delay (at least 00:00:00.5) between next calls. Example script below. In this case second switchable_output will be never enabled or disabled (tried many times)

light_off:
  alias: Light - Off
  sequence:
  - service: switch.turn_off
    data: {}
    entity_id: switch.osw_front
  - service: switch.turn_off
    data: {}
    entity_id: switch.osw_taras
  mode: single
light_on:
  alias: Light - On
  sequence:
  - service: switch.turn_on
    data: {}
    entity_id: switch.osw_front
  - service: switch.turn_on
    data: {}
    entity_id: switch.osw_taras
  mode: single

Environment

  • Home Assistant Core release with the issue: 0.116.4
  • Last working Home Assistant Core release (if known): not known
  • Operating environment (OS/Container/Supervised/Core): Container
  • Integration causing this issue: satel_integra
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/satel_integra/

Problem-relevant configuration.yaml

satel_integra:
  host: 192.168.100.51
  port: 7094
  code: 0000
  partitions:
    01:
      name: 'Dol'
  switchable_outputs:
    17:
      name: 'Osw. Front'
    18:
      name: 'Osw. Taras'

Traceback/Error logs

hass_1  | 2020-10-20 10:39:47 DEBUG (MainThread) [homeassistant.components.satel_integra.switch] Switch: Osw. Front status: False, turning on
hass_1  | 2020-10-20 10:39:47 DEBUG (MainThread) [homeassistant.components.satel_integra.switch] Switch: Osw. Taras status: False, turning on
hass_1  | 2020-10-20 10:39:47 DEBUG (MainThread) [homeassistant.components.satel_integra] Outputs updated callback , status: {'outputs': {17: 1, 18: 0}}
hass_1  | 2020-10-20 10:39:47 DEBUG (MainThread) [homeassistant.components.satel_integra.switch] Update switch name: Osw. Front zones: {17: 1, 18: 0}
hass_1  | 2020-10-20 10:39:47 DEBUG (MainThread) [homeassistant.components.satel_integra.switch] New state: True
hass_1  | 2020-10-20 10:39:47 DEBUG (MainThread) [homeassistant.components.satel_integra.switch] Update switch name: Osw. Taras zones: {17: 1, 18: 0}
hass_1  | 2020-10-20 10:39:47 DEBUG (MainThread) [homeassistant.components.satel_integra.switch] New state: False

Additional information

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:31 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
c-softcommented, Oct 28, 2021

Yepp, no work has been done on it. But I haven’t given up on it, winter comes, so Ill try to find some time… Sorry for looooooooooooong wait 😦

1reaction
pawelgarbaczcommented, Jan 5, 2022

.0x03 0x00 0x00 0x10 translates to (in binary)

1100000 0000000 0000000 00001000

“1” on certain position codes specific zone/output/partition as active/affected. Just the order of bit positions is reversed 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Satel Integra - Unable to switch multiple outputs at once / in ...
I've found that it is not possible to switch multiple outputs at once using that component. After it created switchable outputs I converted ......
Read more >
[satel-integra component] Some outputs not working #38334
The problem Some Integra outputs I can't control. There are two identical outputs. Both defined in satel.yaml as switchable_outputs: 49: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found