3 files
This commit is contained in:
@@ -470,3 +470,7 @@
|
||||
{"timestamp": "2026-08-05T20:40:52.839228+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "input_boolean", "name": "Office Keep Lights On", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": "mdi:lightbulb-on", "area_id": "office", "labels": null, "min_value": null, "max_value": null, "step": null, "unit_of_measurement": null, "options": null, "initial": null, "mode": null, "has_date": null, "has_time": null, "restore": null, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": null, "wait": true, "action": null, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 39.44993019104004, "success": true, "error_message": null, "response_size_bytes": 33626, "user_context": null}
|
||||
{"timestamp": "2026-08-05T20:41:06.077668+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_turn_on_lights_on_motion", "python_transform": "for b in config['actions'][0]['choose']:\n if any(c.get('condition') == 'trigger' and c.get('id') == 'turn_off_logic' for c in b.get('conditions', [])):\n b['conditions'].append({'condition': 'state', 'entity_id': 'input_boolean.office_keep_lights_on', 'state': 'off'})", "config_hash": "3df046f9a0e32b99", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1706.2489986419678, "success": true, "error_message": null, "response_size_bytes": 5658, "user_context": null}
|
||||
{"timestamp": "2026-08-05T20:41:10.405056+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.office_turn_on_lights_on_motion"}, "execution_time_ms": 99.00856018066406, "success": true, "error_message": null, "response_size_bytes": 2119, "user_context": null}
|
||||
{"timestamp": "2026-08-05T20:45:41.659906+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_turn_on_lights_on_motion", "python_transform": "config['triggers'].append({'trigger': 'state', 'entity_id': 'input_boolean.office_keep_lights_on', 'to': 'on', 'id': 'keep_on_enabled'})\nconfig['actions'][0]['choose'].append({'conditions': [{'condition': 'trigger', 'id': 'keep_on_enabled'}], 'sequence': [{'action': 'light.turn_on', 'target': {'entity_id': 'light.playroom_light'}, 'data': {}}]})", "config_hash": "93ef86bca4ac525a", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 356.31442070007324, "success": true, "error_message": null, "response_size_bytes": 5727, "user_context": null}
|
||||
{"timestamp": "2026-08-05T20:45:43.194885+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_turn_off_lights_on_exit", "python_transform": "config['conditions'].append({'condition': 'state', 'entity_id': 'input_boolean.office_keep_lights_on', 'state': 'off'})", "config_hash": "7d68773ca97be6e6", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1119.788408279419, "success": true, "error_message": null, "response_size_bytes": 2019, "user_context": null}
|
||||
{"timestamp": "2026-08-05T20:45:46.496798+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.office_turn_on_lights_on_motion"}, "execution_time_ms": 59.33332443237305, "success": true, "error_message": null, "response_size_bytes": 2403, "user_context": null}
|
||||
{"timestamp": "2026-08-05T20:45:46.569065+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.office_turn_off_lights_on_exit"}, "execution_time_ms": 45.44496536254883, "success": true, "error_message": null, "response_size_bytes": 1063, "user_context": null}
|
||||
|
||||
@@ -223,6 +223,10 @@
|
||||
minutes: 0
|
||||
seconds: 0
|
||||
id: turn_off_logic
|
||||
- trigger: state
|
||||
entity_id: input_boolean.office_keep_lights_on
|
||||
to: 'on'
|
||||
id: keep_on_enabled
|
||||
conditions: []
|
||||
actions:
|
||||
- choose:
|
||||
@@ -270,6 +274,14 @@
|
||||
data:
|
||||
message: Office Lights Turned Off due to inactivity
|
||||
title: ⚡️ Office Lights
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: keep_on_enabled
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.playroom_light
|
||||
data: {}
|
||||
mode: restart
|
||||
- id: '1781034724187'
|
||||
alias: 'Office: Turn Off Lights on Exit'
|
||||
@@ -286,6 +298,9 @@
|
||||
- condition: template
|
||||
value_template: '{{ states.binary_sensor.basement.last_changed > states.binary_sensor.office_door_contact.last_changed
|
||||
}}'
|
||||
- condition: state
|
||||
entity_id: input_boolean.office_keep_lights_on
|
||||
state: 'off'
|
||||
actions:
|
||||
- delay:
|
||||
minutes: 2
|
||||
|
||||
+13
-13
@@ -27,7 +27,7 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"power": 2.8,
|
||||
"power": 2.3,
|
||||
"current": 0.12,
|
||||
"energy": 26.58,
|
||||
"power_factor": 0.16,
|
||||
@@ -47,7 +47,7 @@
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 119,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 48.8,
|
||||
"energy": 48.82,
|
||||
"power_factor": 0.99,
|
||||
"ac_frequency": 60,
|
||||
"update": {
|
||||
@@ -58,7 +58,7 @@
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"linkquality": 134,
|
||||
"power": 197.5,
|
||||
"power": 197.1,
|
||||
"current": 1.66,
|
||||
"power_on_behavior": "on"
|
||||
},
|
||||
@@ -95,13 +95,13 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 119.4,
|
||||
"energy": 42.34,
|
||||
"voltage": 118.9,
|
||||
"energy": 42.35,
|
||||
"state": "ON",
|
||||
"power": 48.8,
|
||||
"current": 0.57,
|
||||
"power": 64.3,
|
||||
"current": 0.74,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.75,
|
||||
"power_factor": 0.72,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -119,7 +119,7 @@
|
||||
"energy": 6.13,
|
||||
"current": 0.01,
|
||||
"power": 0.1,
|
||||
"power_factor": 0.22,
|
||||
"power_factor": 0,
|
||||
"linkquality": 123,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -172,7 +172,7 @@
|
||||
"0xffffb40e060893d8": {
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"voltage": 120.6,
|
||||
"voltage": 120.1,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 3.02,
|
||||
@@ -187,8 +187,8 @@
|
||||
"latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota",
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"power_factor": 0.12,
|
||||
"power": 0.1
|
||||
"power_factor": 0.06,
|
||||
"power": 0.2
|
||||
},
|
||||
"0xa4c1380d0679ffff": {
|
||||
"battery": 100,
|
||||
@@ -245,7 +245,7 @@
|
||||
},
|
||||
"0xb40e060fffe717c5": {
|
||||
"battery": 100,
|
||||
"occupancy": true,
|
||||
"occupancy": false,
|
||||
"tamper": false,
|
||||
"battery_low": false,
|
||||
"linkquality": 72,
|
||||
|
||||
Reference in New Issue
Block a user