Skip to content

Instantly share code, notes, and snippets.

@pewu78
pewu78 / smart_irrigation.yaml
Created August 13, 2023 14:23
Smart Irrigation Automation Example
alias: Smart Irrigation
description: Run Smart Irrigation
trigger:
- platform: event
event_type: Smart_Irrigation_start
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.smart_irrigation_daily_adjusted_run_time
@pewu78
pewu78 / statusbar.sql
Last active June 21, 2023 07:31
SQLcl script - set sql prompt and add container name and session id to status bar
set scan off
set define off
script
// SQLCLs Command Registry
var CommandRegistry = Java.type("oracle.dbtools.raptor.newscriptrunner.CommandRegistry");
// CommandListener for creating any new command
var CommandListener = Java.type("oracle.dbtools.raptor.newscriptrunner.CommandListener")