{ "trace": { "last_step": "sequence/0", "run_id": "38ae128735cee8919eaffcd20b539386", "state": "stopped", "script_execution": "finished", "timestamp": { "start": "2025-04-12T11:50:33.519088+00:00", "finish": "2025-04-12T11:50:33.538419+00:00" }, "domain": "script", "item_id": "set_smartfox_aout_mode", "trace": { "sequence/0": [ { "path": "sequence/0", "timestamp": "2025-04-12T11:50:33.521247+00:00", "changed_variables": { "aout_mode_off": [], "aout_mode_manual": [ 1 ], "aout_mode_auto": [ 2 ], "this": { "entity_id": "script.set_smartfox_aout_mode", "state": "off", "attributes": { "last_triggered": "2025-04-12T11:49:12.871768+00:00", "mode": "single", "current": 0, "icon": "mdi:car-cruise-control", "friendly_name": "Set Smartfox Aout Mode" }, "last_changed": "2025-04-12T11:50:01.384032+00:00", "last_reported": "2025-04-12T11:50:01.384032+00:00", "last_updated": "2025-04-12T11:50:01.384032+00:00", "context": { "id": "01JRMXBMX8S3SPRASRBTC0YWS1", "parent_id": null, "user_id": null } }, "mode_in": "Deactivate", "context": { "id": "01JRMXCM9E5M1S2356YAPXEA61", "parent_id": null, "user_id": "fdcca8628e5f4938850208925b12c77c" } }, "result": { "params": { "domain": "modbus", "service": "write_register", "service_data": { "hub": "SmartfoxPro2", "slave": 1, "address": 42206, "value": [] }, "target": {} }, "running_script": false } } ] }, "config": { "alias": "Set Smartfox Aout Mode", "description": "Set the Aout mode of Smartfox", "variables": { "aout_mode_off": [], "aout_mode_manual": [ 1 ], "aout_mode_auto": [ 2 ] }, "fields": { "mode_in": { "selector": { "select": { "options": [ "Deactivate", "Manual", "Auto" ], "multiple": false } }, "required": true, "description": "The Mode to set the Aout to", "name": "mode_in" } }, "sequence": [ { "service": "modbus.write_register", "data": { "hub": "SmartfoxPro2", "slave": 1, "address": 42206, "value": "{% if mode_in == \"Deactivate\" %}\n {{aout_mode_off}}\n{% elif mode_in == \"Manual\" %}\n {{aout_mode_manual}}\n{% elif mode_in == \"Auto\" %}\n {{aout_mode_auto}}\n{% else %}\n {{aout_mode_auto}}\n{% endif %}\n" } } ], "mode": "single", "icon": "mdi:car-cruise-control" }, "blueprint_inputs": null, "context": { "id": "01JRMXCM9E5M1S2356YAPXEA61", "parent_id": null, "user_id": "fdcca8628e5f4938850208925b12c77c" } }, "logbookEntries": [ { "when": 1744458633.519808, "state": "on", "entity_id": "script.set_smartfox_aout_mode", "icon": "mdi:car-cruise-control", "context_user_id": "fdcca8628e5f4938850208925b12c77c" }, { "when": 1744458633.534149, "state": "off", "entity_id": "script.set_smartfox_aout_mode", "icon": "mdi:car-cruise-control", "context_user_id": "fdcca8628e5f4938850208925b12c77c", "context_state": "on", "context_entity_id": "script.set_smartfox_aout_mode" } ] }