8000 Pilight switch not working in 0.32.2 · Issue #4282 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pilight switch not working in 0.32.2 #4282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Mister-Espria opened this issue Nov 7, 2016 · 2 comments · Fixed by #4286
Closed

Pilight switch not working in 0.32.2 #4282

Mister-Espria opened this issue Nov 7, 2016 · 2 comments · Fixed by #4286

Comments

@Mister-Espria
Copy link
Contributor

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.32.2

Python release (python3 --version):
Python 3.4.2

Component/platform:
pilight/switch

Description of problem:
Pilight switch throws an error when using the switch.
So devices are not switched on or off.

with the following error message:

16-11-07 13:36:13 homeassistant.components.pilight: Pilight send failed for {'unit': '0', 'on': 1, 'id': 12690930, 'protocol': ['kaku_switch']}

Expected:
Switch is toggled on or off

Problem-relevant configuration.yaml entries and steps to reproduce:

pilight:
  host: 127.0.0.1
  port: 5000

    Lamp:
      on_code:
        protocol: kaku_switch
        id: 12695930
        unit: 0
        'on': 1
      off_code:
        protocol: kaku_switch
        id: 12695930
        unit: 0
        'off': 1
      on_code_receive:
        protocol: arctech_switch
        id: 12695930
        unit: 0
        state: 'on'
      off_code_receive:
        protocol: arctech_switch
        id: 12695930
        unit: 0
        state: 'off'
  1. update to 0.32.2
  2. use the pilight switch
@janLo
Copy link
Contributor
janLo commented Nov 7, 2016

Same problem here:

16-11-07 15:57:07 ERROR (ThreadPool Worker 2) [homeassistant.components.pilight] Pilight send failed for {'protocol': ['brennenstuhl'], 'off': 1, 'systemcode': '31', 'unitcode': 1}

janLo added a commit to janLo/home-assistant that referenced this issue Nov 7, 2016
According to the pilight code the systemcode should be an integer and
not a string (it is an int in the pilight code). Passing this as a
string caused errors from pilight:
"ERROR: elro_800_switch: insufficient number of arguments"

This fixes home-assistant#4282
@dnuc
Copy link
dnuc commented Nov 8, 2016

Same problem here.

janLo added a commit to janLo/home-assistant that referenced this issue Nov 9, 2016
According to the pilight code the unit of an entity is also evrywhere
handled as an integer. So converting and passing this as string causes
pilight not to work.

This fixes home-assistant#4282

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
balloob pushed a commit that referenced this issue Nov 10, 2016
* Change pilight systemcode validation to integer

According to the pilight code the systemcode should be an integer and
not a string (it is an int in the pilight code). Passing this as a
string caused errors from pilight:
"ERROR: elro_800_switch: insufficient number of arguments"

This fixes #4282

* Change pilight unit-id to positive integer

According to the pilight code the unit of an entity is also evrywhere
handled as an integer. So converting and passing this as string causes
pilight not to work.

This fixes #4282

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
balloob pushed a commit that referenced this issue Nov 11, 2016
* Change pilight systemcode validation to integer

According to the pilight code the systemcode should be an integer and
not a string (it is an int in the pilight code). Passing this as a
string caused errors from pilight:
"ERROR: elro_800_switch: insufficient number of arguments"

This fixes #4282

* Change pilight unit-id to positive integer

According to the pilight code the unit of an entity is also evrywhere
handled as an integer. So converting and passing this as string causes
pilight not to work.

This fixes #4282

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0