openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601 and BL602
https://openbekeniot.github.io/webapp/devicesList.html
1.39k stars 241 forks source link

Publish some software identifying material? #1101

Closed TurkeyMan closed 5 months ago

TurkeyMan commented 6 months ago

I want to detect/determine what software and version devices are running where possible. There's quite a lot of device info/config that the device can report already; ie, MAC, IP, SSID, wifi channel, uptime, etc, etc. Please also publish the software (ie, "OpenBeken"), and the version number among this device info?

TurkeyMan commented 6 months ago

Also the chipset would be very valuable info to report for management UI and such. An auto-update implementation needs to know this stuff.

TurkeyMan commented 6 months ago

I just realised that build has the version, not just the build date. But the actual software name, and chipset would be good.

divadiow commented 6 months ago

Would LOVE to see full flash ID, size and current use/free levels. Also the module and TuyaMCU baud, if present, in the main GUI

openshwprojects commented 6 months ago

So you want to modify this str> image

TurkeyMan commented 6 months ago

I don't know if modify that string or add a new topic; your call on that! Maybe a string like: "OpenBeken " USER_SW_VER " build: "__DATE__ " " __TIME__ " " hw: " [ie, BK7231N] Responding to @divadiow, maybe flash id can fit in there too? I reckon use/free levels and things like MCU baud rate might be different topic's though?

divadiow commented 6 months ago

Ok sure. I just like seeing all the infos. And it would be handy, especially in the case of BL602, to know if the full chip info is something like BL602C20 or C10, so people know if it's a 1 or 2mb flash when reporting on potential firmware upgrade flash size issues.

stefan064 commented 6 months ago

Might be of some help, the home assistant discovery topic includes build verision and build platform e.g. /homeassistant/sensor[light,swtich...]/device_full_name/config, as Json ,e.g.:

{
  "dev": {
    "ids": [
      "OpenBK7231N_power_monitoring_plug"
    ],
    "name": "Aircon Bedroom",
    "sw": "1.17.483",                   <--------
    "mf": "Beken Corporation",
    "mdl": "BK7231N",                   <--------
    "cu": "http://192.168.0.102/index"
  },
TurkeyMan commented 6 months ago

Interesting. Thanks for the tip; although probably not really addressing this issue. I don't think we should have to rely on homeassistant discovery (which is only triggered on demand) to obtain these values. That manufacturer string is good to know about though; I would like to see that also added to the topic that I described in the OP here. Do devices also have a hardware embedded model number or device identifier?

openshwprojects commented 6 months ago

Would this change solve the issue: https://github.com/openshwprojects/OpenBK7231T_App/pull/1107

openshwprojects commented 5 months ago

Ok, I think it's safe to mark it as solved and close the issue.