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.75k stars 416 forks source link

support for Sonoff TRVB #1498

Closed cpmarexel2f closed 1 month ago

cpmarexel2f commented 1 month ago

Is it possible to implement support for Sonoff TRVB?

"device": {
  "uiid": 7017,
  "params": {
    "subDevId": "3c2ef5fffebafc327017",
    "parentid": "10022783f5",
    "staMac": "***",
    "fwVersion": "1.2.1",
    "otaInfo": {},
    "sun": "000000a001a400be025800be025800be025800be056400a0",
    "mon": "000000a001a400be025800a0025800a003fc00be056400a0",
    "tues": "000000a001a400be025800a0025800a003fc00be056400a0",
    "wed": "000000a001a400be025800a0025800a003fc00be056400a0",
    "thur": "000000a001a400be025800a0025800a003fc00be056400a0",
    "fri": "000000a001a400be025800a0025800a003fc00be056400a0",
    "sat": "000000a001a400be025800be025800be025800be056400a0",
    "tempCorrection": 0,
    "battery": 97,
    "runVoltage": 132.7,
    "workMode": "1",
    "manTargetTemp": 190,
    "curTargetTemp": 40,
    "workState": "0",
    "fault": "reasonCode0",
    "temperature": "243",
    "trigTime": 1727111049341,
    "childLock": false,
    "windowSwitch": true,
    "openPercent": 100,
    "closePercent": 100,
    "ecoTargetTemp": 40
  },
  "model": "TRVZB",
  "online": true,
  "local": null,
  "localtype": null,
  "host": null,
  "deviceid": "a48009dcbe"
}
AlexxIT commented 1 month ago

Looks like it's a difficult device. A lot of unclear params.

cpmarexel2f commented 1 month ago

Looks like it's a difficult device. A lot of unclear params.

Maybe this can be helpful! Screenshot_2024-09-25-13-18-06-421_com coolkit

Screenshot_2024-09-25-13-15-25-959_com coolkit

I also think that not all parameters are necessary!

In principle, it should support something like this :)

type: thermostat entity: climate.sonoff_trvb features:

ahmet8282 commented 1 month ago

To be honest, initially limited support is better than no support. just showing the current temperature, target temperature and battery will be a start. they are easy to identify.

macxq commented 1 month ago

+1 for initially limited support status(off/heating) + current temperature would be awesome

Pante90 commented 1 month ago

To be honest, someone doesn't want to integrate TVRZB with sonoffLAN, because if you connect direct with ZHA, there are all functions from these device, but if you using these device with sonoff zbridge or NSPanel Pro, the device is not avaible. It's very frustated and useless. It's a shame because this integration was really convenient. I think is not really complicated implement to use TRVZB but someone doesn't want.

AlexxIT commented 1 month ago

I discovered that this issue is a duplicate #1244