diff --git a/scripts/api_test.http b/scripts/api_test.http index de5d162c7..1ced2e06f 100644 --- a/scripts/api_test.http +++ b/scripts/api_test.http @@ -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" +} \ No newline at end of file diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index 6a5ca5ccc..d99bcf933 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -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)) {