Skip to content

Commit

Permalink
update docs, add bridge info
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Oct 4, 2023
1 parent 0e0ed93 commit fe23b75
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Do not add anything here, as it will overwritten with next rebuild.
| [Flags](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/flags.md) (43 total) | Flags are global and allows you to alter behaviour of the device. |
| [Drivers](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/drivers.md) (41 total) | Drivers allows you to control certain peripherals or enable certain features that are off by default. |
| [Script constants](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/constants.md) (29 total) | Every console command that takes an integer argument supports certain constant expansion. |
| [Channel Types](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/channelTypes.md) (43 total) | Channel types are often not required and don't have to be configured, but in some cases they are required for better device control from OpenBeken web panel. Channel types describes the kind of value stored in channel, for example, if you have a Tuya Fan Controller with 3 speeds control, you can set the channel type to LowMidHigh and it will display the correct UI radiobutton on OpenBeken panel.<br>Some channels have '_div10' or '_div100' sufixes. This is for TuyaMCU. This is needed because TuyaMCU sends values as integers, so it sends, for example, 215 for 21.5C temperature, and we store it internally as 215 and only convert to float for display. |
| [Channel Types](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/channelTypes.md) (44 total) | Channel types are often not required and don't have to be configured, but in some cases they are required for better device control from OpenBeken web panel. Channel types describes the kind of value stored in channel, for example, if you have a Tuya Fan Controller with 3 speeds control, you can set the channel type to LowMidHigh and it will display the correct UI radiobutton on OpenBeken panel.<br>Some channels have '_div10' or '_div100' sufixes. This is for TuyaMCU. This is needed because TuyaMCU sends values as integers, so it sends, for example, 215 for 21.5C temperature, and we store it internally as 215 and only convert to float for display. |
| [FAQ](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/faq.md) (30 total) | Here is a detailed list of questions you may ask. Some information from docs is repeated here. |
| [Console/Script commands](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md) (280 total) | There are multiple console commands that allow you to automate your devices. Commands can be entered manually in command line, can be send by HTTP (just like in Tasmota), can be send by MQTT and also can be scripted. |
| [Command Examples](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commandExamples.md) (10 total) | Here you can find some examples of console commands usage |
Expand Down
1 change: 1 addition & 0 deletions docs/channelTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ Do not add anything here, as it will overwritten with next rebuild.
| Toggle_Inv | Like a Toggle, but inverted states. |
| OffOnRemember | Radio buttons with 3 options: off, on and 'remember'. This is used for TuyaMCU memory state |
| Voltage_div100 | For TuyaMCU power metering. Not used for BL09** and CSE** sensors. Divider is used by TuyaMCU, because TuyaMCU sends always values as integers so we have to divide them before displaying on UI |
| Temperature_div2 | Just like ChType_Temperature_div10, but for multiplied by 0.5. |
| Max | This is the current total number of available channel types. |
2 changes: 1 addition & 1 deletion docs/drivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ Do not add anything here, as it will overwritten with next rebuild.
| SGP | SGP Air Quality sensor with I2C interface.<br/>See also [SGP on forum](https://www.elektroda.com/rtvforum/find.php?q=SGP). |
| ShiftRegister | ShiftRegisterShiftRegisterShiftRegisterShiftRegister.<br/>See also [ShiftRegister on forum](https://www.elektroda.com/rtvforum/find.php?q=ShiftRegister). |
| Battery | Custom mechanism to measure battery level with ADC and an optional relay. See [example here](https://www.elektroda.com/rtvforum/topic3959103.html).<br/>See also [Battery on forum](https://www.elektroda.com/rtvforum/find.php?q=Battery). |
| Bridge | TODO.<br/>See also [Bridge on forum](https://www.elektroda.com/rtvforum/find.php?q=Bridge). |
| Bridge | A bridge relay driver, added for [TONGOU TO-Q-SY1-JWT Din Rail Switch](https://www.elektroda.com/rtvforum/topic3934580.html). See linked topic for info.<br/>See also [Bridge on forum](https://www.elektroda.com/rtvforum/find.php?q=Bridge). |
8 changes: 8 additions & 0 deletions docs/json/channelTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,14 @@
"file": "new_pins.h",
"driver": ""
},
{
"name": "Temperature_div2",
"title": "TODO",
"descr": "Just like ChType_Temperature_div10, but for multiplied by 0.5.",
"enum": "ChType_Temperature_div2",
"file": "new_pins.h",
"driver": ""
},
{
"name": "Max",
"title": "TODO",
Expand Down
2 changes: 1 addition & 1 deletion docs/json/drivers.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
{
"name": "Bridge",
"title": "TODO",
"descr": "TODO",
"descr": "A bridge relay driver, added for [TONGOU TO-Q-SY1-JWT Din Rail Switch](https://www.elektroda.com/rtvforum/topic3934580.html). See linked topic for info.",
"requires": ""
}
]
2 changes: 1 addition & 1 deletion src/driver/drv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static driver_t g_drivers[] = {
#ifdef ENABLE_DRIVER_BRIDGE
//drvdetail:{"name":"Bridge",
//drvdetail:"title":"TODO",
//drvdetail:"descr":"TODO",
//drvdetail:"descr":"A bridge relay driver, added for [TONGOU TO-Q-SY1-JWT Din Rail Switch](https://www.elektroda.com/rtvforum/topic3934580.html). See linked topic for info.",
//drvdetail:"requires":""}
{ "Bridge", Bridge_driver_Init, NULL, NULL, Bridge_driver_QuickFrame, Bridge_driver_DeInit, Bridge_driver_OnChannelChanged, false }
#endif
Expand Down

0 comments on commit fe23b75

Please sign in to comment.