changed start tz of time frame

This commit is contained in:
Ben Varick 2023-11-28 07:51:21 -06:00
parent f6a67d7ab2
commit 743f3d8d59
Signed by: ben
SSH Key Fingerprint: SHA256:jWnpFDAcacYM5aPFpYRqlsamlDyKNpSj3jj+k4ojtUo

View File

@ -65,7 +65,8 @@ update_data <- function(){
time = as.POSIXct(time, tz = "America/Chicago"),
status = ifelse(value > power_threshold_on, "on", "off")) %>%
mutate(door_threshold = ifelse(entity_id == "washing_machine_power", power_threshold_wash_door, power_threshold_dry_door)) %>%
mutate(door = ifelse(value < door_threshold, "open", "closed"))
mutate(door = ifelse(value < door_threshold, "open", "closed")) %>%
filter(time >= start_time)
values_by_entity <- as.list(NULL)
for(entity in entities$entity_id) {