Skip to content

Commit

Permalink
testing coldshot
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Jul 22, 2022
1 parent 297134d commit 505e339
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions scripts/api_test.http
Expand Up @@ -29,3 +29,15 @@ Authorization: Bearer {{token}}
"entity" : "seltemp",
"value" : 21.0
}

###

POST http://10.10.10.134/api
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiYWRtaW4iOnRydWV9.2bHpWya2C7Q12WjNUBD6_7N3RCD7CMl-EGhyQVzFdDg

{
"device" : "boiler",
"entity" : "wwtapactivated",
"value" : "on"
}
7 changes: 4 additions & 3 deletions src/devices/boiler.cpp
Expand Up @@ -1590,9 +1590,10 @@ bool Boiler::set_ww_activated(const char * value, const int8_t id) {
// Activate / De-activate the Warm Tap Water
// Note: Using the type 0x1D to put the boiler into Test mode. This may be shown on the boiler with a flashing 'T'
bool Boiler::set_tapwarmwater_activated(const char * value, const int8_t id) {
if (!Helpers::hasValue(wwTapActivated_, EMS_VALUE_BOOL)) {
return false;
}
// as it's a command it may not initially exist
// if (!Helpers::hasValue(wwTapActivated_, EMS_VALUE_BOOL)) {
// return false;
// }

bool v = false;
if (!Helpers::value2bool(value, v)) {
Expand Down

0 comments on commit 505e339

Please sign in to comment.