| 324 | } |
| 325 | |
| 326 | int DaylightSensor::getSunsetOffset() const |
| 327 | { |
| 328 | return state.getValue().at("config").at("sunsetoffset").get<int>(); |
| 329 | } |
| 330 | void DaylightSensor::setSunsetOffset(int minutes) |
| 331 | { |
| 332 | sendPutRequest("/config", nlohmann::json {{"sunsetoffset", minutes}}, CURRENT_FILE_INFO); |