Skip to content

Commit

Permalink
v0.69
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueforcer committed Jun 11, 2023
1 parent 83ac8aa commit a688e87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ Each property is optional; you do not need to send all.
| `TEMP_COL` | string / array of ints| Sets the textcolor of the temp app. Set 0 for global textcolor | an array of RGB values hexadecimal color value | N/A |
| `HUM_COL` | string / array of ints| Sets the textcolor of the humidity app. Set 0 for global textcolor | an array of RGB values hexadecimal color value | N/A |
| `BAT_COL` | string / array of ints| Sets the textcolor of the battery app. Set 0 for global textcolor | an array of RGB values hexadecimal color value | N/A |
| `SSPEED` | integer | Modifies the scrollspeed | percentage value of the original scrollspeed | 100 |

**Timeformats:**
```bash
Expand Down
22 changes: 11 additions & 11 deletions src/MQTTManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
WiFiClient espClient;
HADevice device;
HAMqtt mqtt(espClient, device, 25);
HANumber *ScrollSpeed = nullptr;
//HANumber *ScrollSpeed = nullptr;
HALight *Matrix, *Indikator1, *Indikator2, *Indikator3 = nullptr;
HASelect *BriMode = nullptr;
HAButton *dismiss, *nextApp, *prevApp, *doUpdate = nullptr;
Expand Down Expand Up @@ -547,16 +547,16 @@ void MQTTManager_::setup()
ram->setName(HAramName);
ram->setUnitOfMeasurement(HAramUnit);

sprintf(sSpeed, HASPEEDID, macStr);
ScrollSpeed = new HANumber(sSpeed);
ScrollSpeed->setDeviceClass(HAramClass);
ScrollSpeed->setIcon(HASPEEDIcon);
ScrollSpeed->setName(HASPEEDName);
ScrollSpeed->onCommand(onNumberCommand);
ScrollSpeed->setMin(40);
ScrollSpeed->setMax(100);
ScrollSpeed->setStep(1);
ScrollSpeed->setCurrentState(SCROLL_SPEED);
//sprintf(sSpeed, HASPEEDID, macStr);
//ScrollSpeed = new HANumber(sSpeed);
//ScrollSpeed->setDeviceClass(HAramClass);
//ScrollSpeed->setIcon(HASPEEDIcon);
//ScrollSpeed->setName(HASPEEDName);
//ScrollSpeed->onCommand(onNumberCommand);
//ScrollSpeed->setMin(40);
//ScrollSpeed->setMax(100);
//ScrollSpeed->setStep(1);
//ScrollSpeed->setCurrentState(SCROLL_SPEED);
}
else
{
Expand Down

0 comments on commit a688e87

Please sign in to comment.