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.72k stars 415 forks source link

Any plans on supporting Sonoff's 315 bridge? #361

Closed jakobrosenberg closed 3 years ago

jakobrosenberg commented 3 years ago

I can detect my 433mhz bridge, but not the 315mhz version.

AlexxIT commented 3 years ago

Does Sonoff have 315 bridge? Never heard about it.

jakobrosenberg commented 3 years ago

It's not as pretty, but product description says Sonoff and it works with ewelink.

https://www.ebay.com/itm/Sonoff-RF-Bridge-WiFi-315-433-MHz-Dual-Wireless-Smart-Hub-Home-Garage-Automation-/184338160709

AlexxIT commented 3 years ago

Can you send some debug logs?

jakobrosenberg commented 3 years ago

Sorry about the slow reply. How would I get debug logs?

AlexxIT commented 3 years ago

https://github.com/AlexxIT/SonoffLAN#component-debug-mode

jakobrosenberg commented 3 years ago

Thanks!

debug log ``` 2021-02-04 10:27:54 DEBUG main SysInfo: {'version': '0.118.5', 'dev': False, 'hassio': False, 'virtualenv': False, 'python_version': '3.8.6', 'docker': True, 'arch': 'x86_64', 'os_name': 'Linux', 'os_version': '4.19.128-microsoft-standard'} 2021-02-04 10:27:54 DEBUG main AUTO mode start 2021-02-04 10:27:58 DEBUG sonoff_cloud 1 devices loaded from the Cloud Server 2021-02-04 10:27:58 DEBUG main Init force_update for attributes: {'power', 'temperature'} 2021-02-04 10:27:58 DEBUG main Init auto sensors for: ['temperature', 'humidity', 'power', 'current', 'voltage'] 2021-02-04 10:27:58 DEBUG main 1000e73697 == Init | {'uiid': 28, 'extra': {'manufacturer': 'SONOFF', 'model': 'RFBridge', 'sw_version': 'PSF-BRA-GL v3.5.0'}, 'params': {'bindInfos': {'gaction': ['...']}, 'rfTrig3': '2021-02-04T09:16:11.000Z', 'rfTrig2': '2021-01-10T11:32:48.000Z', 'rfTrig1': '2020-12-10T11:09:17.000Z', 'timers': [], 'bssid': 'd8:d7:75:72:cc:8c', 'ssid': 'BJ2G', 'only_device': {'ota': 'success'}, 'rfChl': 0, 'cmd': 'trigger', 'rfList': [{'rfChl': 0, 'rfVal': '308401C204D861F2D6'}, {'rfChl': 1, 'rfVal': '308401C204E2632116'}, {'rfChl': 2, 'rfVal': '303E01B804D8632E06'}, {'rfChl': 3, 'rfVal': '33AE01C204F698B629'}], 'setState': 'arm', 'staMac': '...', 'rssi': -34, 'fwVersion': '3.5.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'rfTrig0': '2021-01-23T12:48:02.000Z', 'cloud': 'online'}} 2021-02-04 10:27:59 DEBUG sonoff_cloud Cloud init: {'error': 0, 'apikey': '...', 'config': {'hb': 1, 'hbInterval': 145}, 'sequence': '1612430879556'} ```

It doesn't seem to detect the 315 model. (315 @ hostname: ESP_5AF767 / mac: C8:2B:96:5A:F7:67 / ip: 192.168.0.164)

AlexxIT commented 3 years ago

Do you see 315 model in eWeLink mobile application?

jakobrosenberg commented 3 years ago

image image image

AlexxIT commented 3 years ago

It's very strange. I don't know any reason why Hass don't get it in start log. Can you share device to my ewelink account sonofflan@gmail.com ?

jakobrosenberg commented 3 years ago

Shared. Thanks for taking your time with this! 🙂

AlexxIT commented 3 years ago

315 device shows in Hass without problem. I have not check if it can receive and send commands because I can't do it remotely. But it think should not be a problem.

image

jakobrosenberg commented 3 years ago

Sorry completely missed your reply.

Can I ask how you configured it in configuration.yaml?

AlexxIT commented 3 years ago

Just username and password

jakobrosenberg commented 3 years ago

I can't get it to show in /developer-tools/state or the sonoff debug log.

I've tried

sonoff:
  username: xxx
  password: xxx

and

sonoff:
  username: xxx
  password: xxx
  rfbridge:
    ...
AlexxIT commented 3 years ago

Maybe you don't share it to your Hass ewelink account?

jakobrosenberg commented 3 years ago

I can't believe it! 😅

Now I just have to figure out how send rf commands from the 315. I'm not sure how to differentiate between identical button names of different remotes.

AlexxIT commented 3 years ago

I think problem solved

jakobrosenberg commented 3 years ago

It is. Thanks so much for your help @AlexxIT