logo elektroda
logo elektroda
X
logo elektroda

[Solved] is it possible to change the mac address in a tuya origial door sensor bin file

sirhcsat 1056 4
ADVERTISEMENT
  • #1 20956159
    sirhcsat
    Level 7  
    Is it possible to change the MAC address in a Tuya firmware .bin file "original firmware from a door sensor" and then flash the "new MAC address" bin file to a different door sensor so I can use them both to conduct experiments on?
    I use NiZN rechargeable AAA cells and they last for a good length of time, but they always report 100% power until they start to show they are discharging, and once they reach 96%, then they fall off the cliff and within a few hours they are dead.
    With 2 door sensors, I can use HA to graph the power usage over the life of the charged cells and see how it compares to an openbeken flashed device on the same door doing the same open/close actions.
    I am in the process of changing over to Zigbee for all my sensors and wanted to do a few experiments with the old Tuya Wi-Fi sensors before I cut them loose and chuck them in the junk box.

    cheers
  • ADVERTISEMENT
  • Helpful post
    #2 20957104
    p.kaczmarek2
    Moderator Smart Home
    MAC address is at the constant offset in the RF partition, so there should be no problem. I think you can find this address in our Web App source code.
    https://github.com/OpenBekenIOT/webapp/blob/gh-pages/vue/flash.vue
    Search for: restore_rf_internal

    In that battery issue, do you use OpenBeken or Tuya firmware?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20957276
    sirhcsat
    Level 7  

    The batteries are used in all my sensors.
    The Tuya original temperature & humidity sensors and the (SHT3X combined door sensors flashed with Openbeken but only used as temperature & humidity sensors), Zigbee door sensors, and with a few Openbeken flashed Tuya door sensors. But the Openbeken flashed ones seem to show it happening more. The Zigbee temperature & humidity is 3 weeks old and still showing 100%, but one of the Openbeken door sensors just showed the battery fade out rapidly yesterday. I think it could be related to how the battery chemistry is done as they are supposed to give full power for as long as possible then fade out quickly. The door sensor was down to 1.4v between both cells and it corrupted the flash and needed a full erase and reflash to get it back to life.
    I messed up the config on one of my SHT3X upgraded door sensors to use as a temperature & humidity sensor, so today I have just updated to the latest OTA version and fixed the config, then installed a freshly charged pair of batteries today so I can log the battery life with the NiZN cells fitted to it. I now have 2 Openbeken sensors with fresh batteries that I can keep an eye on over the next few weeks.
    I don't think it's Openbeken, but I just wanted to compare 2 sensors doing the same job, one original and 1 flashed while I wait for a few more Zigbee sensors arriving from China..
  • ADVERTISEMENT
  • Helpful post
    #4 20957431
    p.kaczmarek2
    Moderator Smart Home
    WiFi is never recommended for battery-powered devices. Zigbee is by design more efficient and uses less energy.

    Futhermore, WiFi sensors battery usage depends on how you configured the Deep Sleep on them.

    The same goes for the wake up frequency, if you configure OBK to wake up more often than Tuya, then you will discharge your battery more quickly
    Helpful post? Buy me a coffee.
  • #5 20980899
    sirhcsat
    Level 7  

    to solve the problem I just changed over to Zigbee devices as the battery usage is far better than with the Wi-Fi versions.
    The Zigbee door sensor still showed 100% charge and the Wi-Fi version discharged within 2 weeks. The door is activated 50+ times a day so with all the Wi-Fi power up and connect, send data and then disconnect and sleep they just do not last.
ADVERTISEMENT