| 311 | sendPutRequest("/config", request, CURRENT_FILE_INFO); |
| 312 | } |
| 313 | bool DaylightSensor::isConfigured() const |
| 314 | { |
| 315 | return state.getValue().at("config").at("configured").get<bool>(); |
| 316 | } |
| 317 | int DaylightSensor::getSunriseOffset() const |
| 318 | { |
| 319 | return state.getValue().at("config").at("sunriseoffset").get<int>(); |