AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.58k stars 406 forks source link

Wrong deviceid 22139 (GK-200MP2-B Camera) #172

Closed seoulop closed 3 years ago

seoulop commented 4 years ago

Thank you for this wonderful custom component.

Now I'm having a problem with PTZ of GK-200MP2-B Camera. I have 2 GK-200MP2-B, and one of them works perfectly, but the other one doesn't work PTZ function.

The log says 'Wrong deviceid 22139' Logger: custom_components.sonoff Source: custom_components/sonoff/init.py:215

I checked camera id hundreds times and it was correct. What else can I try now?

Ps. I'm using Sonoff LAN v2.2.0 with Hassio HA 0.111.2 on the RP4

A camera with script below works.

sonoff_camera_left:
  sequence:
  - data:
      cmd: left
      device: 052xxx
    service: sonoff.send_command

And the other one with script below doesn't work.

sonoff_camera3_left:
  sequence:
    - data:
        cmd: left
        device: 053xxx
      service: sonoff.send_command

The only difference is device id and they are all correct.

AlexxIT commented 3 years ago

Hi. I found a solution. You need to use quotes. YAML converts your ID from the octal system.

device: '053xxx'