logo elektroda
logo elektroda
X
logo elektroda

BK7231N OpenBeken - Transfer majority of settings in flash file for easy config

crunchtime2k 873 4
ADVERTISEMENT
  • #1 20470075
    crunchtime2k
    Level 2  
    Anyone know of a way to make configuring 30 RGB light fixtures a bit easier? I was able to clone the flash from a fully configured light but the mac address and MQTT name stay the same and they have to be unique per each light.

    IS there a way to export all the settings and passwords in a file and then upload into each light thru web interface maybe?

    Trying to find a way to either clone a config or just flash it with everything set already but have it not override the MAC and MQTT name that is based on the mac?

    It will be extremely time consuming to configure 30 lights, they are all the same unit.

    FEIT RGB COOL Warm WHITE 1000 LUMEN RECESSED 5/6" DOWNLIGHT
    WORKING config for anyone with them that is struggling.

    TUYA CBU
    "pins": {
    "6": "PWM;3",
    "7": "PWM_n;4",
    "8": "PWM;5",
    "24": "PWM;2",
    "26": "PWM;1"
    },
  • ADVERTISEMENT
  • #2 20470213
    p.kaczmarek2
    Moderator Smart Home
    Hello, if your device is not listed on templates list, please also post some photos of the device and packaging, so we can add an entry for it.
    Regarding configuration, have you read:
    https://www.elektroda.com/rtvforum/topic3947241.html
    You can easily create a commands list with:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
    Something like:
    
    backlog MqttHost 192.168.0.113; MqttUser Tester; SetPinRole 6 PWM; SetPinChannel 6 3; 
    

    etc, etc...

    You can even run it by pasting that in URL like Tasmota cmnd. Something like:
    
    http://127.0.0.1/cm?cmnd=Power%20Status
    

    just correct the IP and command...

    Added after 40 [seconds]:

    PS: Do not reflash devices with dumps from other devices! You lose RF WiFi calibration that way
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20470333
    ferbulous
    Level 18  
    @p.kaczmarek2 i think it would be great to include provisioning url example on the main wiki page
  • ADVERTISEMENT
  • #4 20470573
    crunchtime2k
    Level 2  
    >>20470213
    Hi, thank you, I will get product photos, box photos and all settings posted, I want to do some more testing and make sure it's 100%.

    From a Windows environment. How would one generate a full config file and execute it to send configuration commands to the light? Sorry to be a noob, not a Linux pro at all.

    Trying to set MQTT user, pass, some pins, and some flags like alternate CW mode and HA discovery. Etc

    Thanks, I will throw a donation also!
  • #5 20475465
    p.kaczmarek2
    Moderator Smart Home
    How would you like to send it? You can use any method that sends a GET request.
    Use commands from here:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
    Create script like that:
    
    backlog MqttHost 192.168.0.113; MqttUser Tester; SetPinRole 6 PWM; SetPinChannel 6 3; SetFlag 5 1
    

    Send something like that (replace space with %20):
    
    http://127.0.0.1/cm?cmnd=backlog%20MqttHost%20192.168.0.113;%20MqttUser%20Tester;%20SetPinRole%206%20PWM;%20SetPinChannel%206%203;%20SetFlag%205%201
    

    You could use curl to send that from windows CMD:
    
    curl -X GET "http://127.0.0.1/cm?cmnd=backlog%20MqttHost%20192.168.0.113;%20MqttUser%20Tester;%20SetPinRole%206%20PWM;%20SetPinChannel%206%203;%20SetFlag%205%201"
    

    You can also use this to for example toggle lights. Futhermore, it should be possible to simplify the command. This also works:
    
    curl http://192.168.0.201/cm?cmnd=POWER%20TOGGLE
    

    Curl can be run on many platforms, it's a versatile solution.

    Let me know if there is anything else I can help you with. I will be making a GUI solution for mass configuration of OBK soon.
    Helpful post? Buy me a coffee.
ADVERTISEMENT