diff --git a/js/beestat/runtime_thermostat.js b/js/beestat/runtime_thermostat.js index a063bdb..70fce1b 100644 --- a/js/beestat/runtime_thermostat.js +++ b/js/beestat/runtime_thermostat.js @@ -37,6 +37,7 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range, key) { 'calendar_event_hold': 3, 'calendar_event_vacation': 3, 'calendar_event_quicksave': 3, + 'calendar_event_door_window_open': 3, 'calendar_event_other': 3, 'calendar_event_custom': 3, 'compressor_heat_1': 16, @@ -63,6 +64,7 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range, key) { 'calendar_event_hold', 'calendar_event_vacation', 'calendar_event_quicksave', + 'calendar_event_door_window_open', 'calendar_event_other', 'calendar_event_custom', 'outdoor_temperature', @@ -338,6 +340,9 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range, key) { } else if (runtime_thermostat.event.match(/^quicksave$/i) !== null) { this_calendar_event = 'calendar_event_quicksave'; this_calendar_event_name = 'Quick Save'; + } else if (runtime_thermostat.event.match(/^dwOpen$/i) !== null) { + this_calendar_event = 'calendar_event_door_window_open'; + this_calendar_event_name = 'Door/Window Open'; } else { this_calendar_event = 'calendar_event_other'; this_calendar_event_name = 'Other'; @@ -353,6 +358,7 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range, key) { 'calendar_event_hold', 'calendar_event_vacation', 'calendar_event_quicksave', + 'calendar_event_door_window_open', 'calendar_event_other', 'calendar_event_custom' ].forEach(function(calendar_event) { diff --git a/js/beestat/style.js b/js/beestat/style.js index 79e5ee6..3a7f8aa 100644 --- a/js/beestat/style.js +++ b/js/beestat/style.js @@ -288,6 +288,11 @@ beestat.series.calendar_event_quicksave = { 'color': beestat.style.color.gray.base }; +beestat.series.calendar_event_door_window_open = { + 'name': 'Door/Window Open', + 'color': beestat.style.color.bluegreen.light +}; + beestat.series.calendar_event_other = { 'name': 'Other', 'color': beestat.style.color.gray.base diff --git a/js/component/chart/runtime_sensor_detail_temperature.js b/js/component/chart/runtime_sensor_detail_temperature.js index a39bc61..0ab909f 100644 --- a/js/component/chart/runtime_sensor_detail_temperature.js +++ b/js/component/chart/runtime_sensor_detail_temperature.js @@ -181,6 +181,7 @@ beestat.component.chart.runtime_sensor_detail_temperature.prototype.get_options_ 'calendar_event_hold', 'calendar_event_vacation', 'calendar_event_quicksave', + 'calendar_event_door_window_open', 'calendar_event_other', 'calendar_event_custom' ].forEach(function(series_code) { diff --git a/js/component/chart/runtime_thermostat_detail_equipment.js b/js/component/chart/runtime_thermostat_detail_equipment.js index a5fce62..dd1cd15 100644 --- a/js/component/chart/runtime_thermostat_detail_equipment.js +++ b/js/component/chart/runtime_thermostat_detail_equipment.js @@ -40,6 +40,7 @@ beestat.component.chart.runtime_thermostat_detail_equipment.prototype.get_option 'calendar_event_hold', 'calendar_event_vacation', 'calendar_event_quicksave', + 'calendar_event_door_window_open', 'calendar_event_other', 'calendar_event_custom', 'compressor_heat_1', diff --git a/js/component/chart/runtime_thermostat_detail_temperature.js b/js/component/chart/runtime_thermostat_detail_temperature.js index 5ae6846..dca72ee 100644 --- a/js/component/chart/runtime_thermostat_detail_temperature.js +++ b/js/component/chart/runtime_thermostat_detail_temperature.js @@ -231,6 +231,7 @@ beestat.component.chart.runtime_thermostat_detail_temperature.prototype.get_opti 'calendar_event_hold', 'calendar_event_vacation', 'calendar_event_quicksave', + 'calendar_event_door_window_open', 'calendar_event_other', 'calendar_event_custom' ].forEach(function(series_code) {