changed start tz of time frame
This commit is contained in:
parent
f6a67d7ab2
commit
743f3d8d59
@ -65,7 +65,8 @@ update_data <- function(){
|
|||||||
time = as.POSIXct(time, tz = "America/Chicago"),
|
time = as.POSIXct(time, tz = "America/Chicago"),
|
||||||
status = ifelse(value > power_threshold_on, "on", "off")) %>%
|
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_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)
|
values_by_entity <- as.list(NULL)
|
||||||
for(entity in entities$entity_id) {
|
for(entity in entities$entity_id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user