OpenBeken - Page 1
Forum section: electronics / beginners

author: anilg
author_rank: Newbie
timestamp: November 03, 2024, 07:09:26 am
content: I just flashed a few devices with Open Beken. It looked like it is like Tasmota.I tried to use it like Tasmota but it did not work?For example I said Mem1=10 and it did not accept that input.Does it support stand alone mode like in Tasmota?Also, please forgive me if this is not the correct forum to post question. I

author: darkspr1te
author_rank: Frequent Contributor
timestamp: November 03, 2024, 09:11:29 am
content: You need to really include more information. Like where did you put that value ?anyway in most openbk installs you will need to create a autoexec.bat file to setup the device a example below(goto device web page, select lauch web app, select file system, select create file autoexec.bat)typical autoexec.bat for openbk/tuya mcu based device.Code:startDriver TuyaMCUstartDriver tmSensorstartDriver NTPntp_setServer 192.168.10.1ntp_timeZoneOfs 2tuyaMcu_setBaudRate 115200setChannelType 1 togglesetChannelType 2 Voltage_div10setChannelType 3 PowersetChannelType 4 Current_div1000setChannelType 5 Frequency_div100setChannelType 6 ReadOnlysetChannelType 7 TemperaturesetChannelType 8 ReadOnlysetChannelType 9 ReadOnly//ch 1 (dpid 1) power relay controllinkTuyaMCUOutputToChannel 1 bool 1addChannel 1 1//ch 2(dpid 20) voltagelinkTuyaMCUOutputToChannel 20 1 2//ch 3(dpid 19) power wattslinkTuyaMCUOutputToChannel 19 1 3//ch 4 (dpid 18)current AmpslinkTuyaMCUOutputToChannel 18 1 4//ch 5 (dpid (133) frequencylinkTuyaMCUOutputToChannel 133 1 5//ch 6 (dpid 102) energy cost usedlinkTuyaMCUOutputToChannel 102 1 6// ch 7 (dpid 135) templinkTuyaMCUOutputToChannel 135 1 7//ch 8 (dpid 134) power factorlinkTuyaMCUOutputToChannel 134 raw 8//ch 9 (dpid 123) energy consumedlinkTuyaMCUOutputToChannel 123 1 9then you need to add a mqtt user to your Home assistant setup with user/pass and put that in the config mqtt section(main device web page, config, config mqtt)finally you need to add mqtt config to configuration.yamlexample setupCode:mqtt:sensor:- unique_id: "ph3_current_a"name: 'PH3 Current'state_topic: 'obk1AF0C347/4/get'unit_of_measurement: 'A'value_template: '{{ (value | int)/1000 }}'- unique_id: "ph3_voltage"name: 'PH3 Voltage'state_topic: 'obk1AF0C347/2/get'unit_of_measurement: 'V'value_template: '{{ (value | int)/100 }}'- unique_id: "ph3_power"name: 'PH3 Power'state_topic: 'obk1AF0C347/3/get'device_class: energyunit_of_measurement: 'W'state_class: total_increasingvalue_template: '{{ (value | int)/100 }}'- unique_id: "Phase Three Factor"name: 'ph3_pf P/Factor'state_topic: 'obk1AF0C347/8/get'unit_of_measurement: 'pF'value_template: '{{ (value | int)/100 }}'- unique_id: "ph3_freq"name: 'PH3 Frequency'state_topic: 'obk1AF0C347/5/get'unit_of_measurement: 'Hz'value_template: '{{ (value | int)/100 }}'- unique_id: "ph3_power_usage_total"name: 'PH3 T/Power Used'state_topic: 'obk1AF0C347/9/get'device_class: energyunit_of_measurement: 'kWh'state_class: total_increasingvalue_template: '{{ (value | int)/1000 }}'you can also go the much harder route of TunaHACS or similar but they all require tuya logins and such.darkspr1te

author: darkspr1te
author_rank: Frequent Contributor
timestamp: November 03, 2024, 09:18:00 am
content: Also you should really supply more info like which openbk was flashed and to what device, include pics if you can.also the people creating openbk hang out on the another place,[url=https://www.elektroda.com/rtvforum/forum390.html]https://www.elektroda.com/rtvforum/forum390.htmlthere are plenty of examples and links to the manuals, guides and pictures.darkspr1te