| 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); |
| 333 | } |
| 334 | |
| 335 | bool DaylightSensor::isDaylight() const |
| 336 | { |