logo elektroda
logo elektroda
X
logo elektroda

NAS-AB02W6 Ver 2.0 Tuya Siren+Temp+Humidity Sensor: Control LEDs with OpenBK Firmware

rylos78 3585 33
ADVERTISEMENT
  • #31 21135700
    divadiow
    Level 34  
    feel free to upload factory-state unpaired full firmware dump or tuya config file

    OpenBK_BK7231N_CB2S_USB_PLUG software control panel on a webpage.
  • ADVERTISEMENT
  • #32 21278896
    cristian4
    Level 2  
    Is there any way for this doorbell to sound differently based on the events created in Home Assistant? For example, to play melody 12 when someone rings the doorbell and melody 9 when there's an alarm event?
  • ADVERTISEMENT
  • #33 21292842
    cristian4
    Level 2  
    >>20383126
    Does it always work for you and remember channels 4 and 5? For me, it doesn’t work all the time; sometimes, when I restart it, it resets to the factory sound. Do I need to use batteries somehow? In my autoexec.bat, I have these two commands:
    addEventHandler TuyaMCUParsed 0x02 addRepeatingEvent 3 2 setChannel 4 12
    addEventHandler TuyaMCUParsed 0x02 addRepeatingEvent 5 2 setChannel 5 2
  • #34 21298720
    cristian4
    Level 2  
    jobstjn wrote:
    Hi sir,

    1st it's the startup bug:
    there's a ~50% chance this config gets applied upon boot (so several tries are needed):
    addEventHandler TuyaMCUParsed 0x02 addRepeatingEvent 2.5 1 setChannel 4 7
    addEventHandler TuyaMCUParsed 0x02 addRepeatingEvent 3 1 setChannel 6 30
    (I think it's something similar for retain: true as a mqtt config strategy)

    2nd it's when the device disconnects from mqtt server (server down):
    gui will still report last config but device will act on default values (e.g. song 5, 10s). Regardless of when or if it reconnects.
    a regular hass automation config will stop working here, need to apply the hack above

    Additionally the minor issue of requiring delay between mqtt commands, perhaps network related?.

    I am unsure how would those ideas fix these issues.


    @p.kaczmarek2 Can you still help us with this device? We haven’t found a solution for it to keep the set melody.

Topic summary

The discussion revolves around programming the NAS-AB02W6 Ver 2.0 Tuya Siren with temperature and humidity sensor capabilities using OpenBK firmware. Users share their experiences with configuring the device, particularly focusing on controlling LED behavior during alarm states and setting chime sounds. Key issues include retaining settings after reboot, managing MQTT connections, and ensuring proper command execution through autoexec.bat scripts. Solutions involve using specific dpIds for configuration, implementing event handlers, and utilizing the TuyaMCU protocol for communication. Users also discuss the importance of capturing packets and backing up firmware before flashing the device.
Summary generated by the language model.
ADVERTISEMENT