testing coldshot

This commit is contained in:
Proddy
2022-07-22 15:56:45 +02:00
parent 297134dd81
commit 505e339406
2 changed files with 16 additions and 3 deletions

View File

@@ -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"
}

View File

@@ -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)) {