Home Information - Your home, your data, organized.
Python
Add New Entity Types for Common Home Items (Issue #259) (#260)
Tony C2c35365d8d3e
diff --git a/src/hi/apps/entity/enums.py b/src/hi/apps/entity/enums.pyindex f3b7b51b..82a84374 100644--- a/src/hi/apps/entity/enums.py+++ b/src/hi/apps/entity/enums.py@@ -20,6 +20,7 @@ class EntityType(LabeledEnum):AUTOMOBILE = ( 'Automobile', '' )AV_RECEIVER = ( 'A/V Receiver', '' ) # Controls Speakers/TVBAROMETER = ( 'Barometer', '' )+ BATTERY_STORAGE = ( 'Battery Storage', '' )BATHTUB = ( 'Bathtub', '' )CAMERA = ( 'Camera', '' )CARBON_MONOXIDE_DETECTOR = ( 'Carbon Monoxide Detector', '' )@@ -42,12 +43,18 @@ class EntityType(LabeledEnum):ELECTRICITY_METER = ( 'Electricity Meter', '' )ELECTRIC_PANEL = ( 'Electric Panel', '' )ELECTRIC_WIRE = ( 'Electric Wire', '' )+ EV_CHARGER = ( 'EV Charger', '' )EXHAUST_FAN = ( 'Exhaust Fan', '' )FENCE = ( 'Fence', '' )FIRE_EXTINGUISHER = ( 'Fire Extinguisher', '' )FIREPLACE = ( 'Fireplace', '' )+ FREEZER = ( 'Freezer', '' )FURNITURE = ( 'Furniture', '' )+ GARAGE_DOOR = ( 'Garage Door', '' )+ GARAGE_DOOR_OPENER = ( 'Garage Door Opener', '' )GARBAGE_DISPOSAL = ( 'Garbage Disposal', '' )+ GAS_LINE = ( 'Gas Line', '' )+ GAS_METER = ( 'Gas Meter', '' )GENERATOR = ( 'Generator', '' )GREENHOUSE = ( 'Greenhouse', '' )GRILL = ( 'Grill', '' ) # BBQ@@ -59,6 +66,8 @@ class EntityType(LabeledEnum):HVAC_FURNACE = ( 'HVAC Furnace', '' ) # Controls areaHVAC_MINI_SPLIT = ( 'HVAC Mini-split', '' ) # Controls areaHYGROMETER = ( 'Hygrometer', '' )+ INVERTER = ( 'Inverter', '' )+ IRRIGATION_CONTROLLER = ( 'Irrigation Controller', '' )LAWN_MOWER = ( 'Lawn Mower', '' )LEAF_BLOWER = ( 'Leaf Blower', '' )LIGHT = ( 'Light', '' )@@ -75,6 +84,9 @@ class EntityType(LabeledEnum):PIPE = ( 'Pipe', '' )PLANT = ( 'Plant', '' )POOL_FILTER = ( 'Pool Filter', '' )+ POOL_HEATER = ( 'Pool Heater', '' )+ POOL_PUMP = ( 'Pool Pump', '' )+ POOL_SWG = ( 'Pool SWG', '' )POWER_WASHER = ( 'Power Washer', '' )PRESENCE_SENSOR = ( 'Presence Sensor', '' )PRINTER = ( 'Printer', '' )@@ -88,6 +100,7 @@ class EntityType(LabeledEnum):SHOWER = ( 'Shower', '' )SINK = ( 'Sink', '' )SKYLIGHT = ( 'Skylight', '' )+ RADON_DETECTOR = ( 'Radon Detector', '' )SMOKE_DETECTOR = ( 'Smoke Detector', '' )SOLAR_PANEL = ( 'Solar Panel', '' )SPEAKER = ( 'Speaker', '' )@@ -95,6 +108,7 @@ class EntityType(LabeledEnum):SPRINKLER_HEAD = ( 'Sprinkler Head', '' )SPRINKLER_VALVE = ( 'Sprinkler Valve', '' ) # Controls sprinkler headsSPRINKLER_WIRE = ( 'Sprinkler Wire', '' )+ SUMP_PUMP = ( 'Sump Pump', '' )TELECOM_BOX = ( 'Telecom Box', '' )TELECOM_WIRE = ( 'Telecom Wire', '' )TELEVISION = ( 'Television', '' )@@ -109,7 +123,9 @@ class EntityType(LabeledEnum):VANITY = ( 'Vanity', '' )WALL = ( 'Wall', '' )WALL_SWITCH = ( 'Wall Switch', '' )+ WATER_FILTER = ( 'Water Filter', '' )WATER_HEATER = ( 'Water Heater', '' )+ WATER_SOFTENER = ( 'Water Softener', '' )WATER_LINE = ( 'Water Line', '' )WATER_METER = ( 'Water Meter', '' )WATER_SHUTOFF_VALVE = ( 'Water Shutoff Valve', '' )@@ -129,6 +145,7 @@ class EntityType(LabeledEnum):cls.AREA,cls.DOOR,cls.FURNITURE,+ cls.GARAGE_DOOR,cls.GREENHOUSE,cls.WALL,cls.WINDOW,@@ -142,6 +159,7 @@ class EntityType(LabeledEnum):cls.DRAINAGE_PIPE,cls.ELECTRIC_WIRE,cls.FENCE,+ cls.GAS_LINE,cls.PIPE,cls.SEWER_LINE,cls.SPEAKER_WIRE,diff --git a/src/hi/apps/entity/templates/entity/svg/type.battery_storage.svg b/src/hi/apps/entity/templates/entity/svg/type.battery_storage.svgnew file mode 100644index 00000000..2cfca93a--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.battery_storage.svg@@ -0,0 +1,17 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Battery unit body (tall rectangular, wall-mounted style) -->+<rect x="16" y="6" width="32" height="52" rx="3" fill="#e0e0e0" stroke="#555" stroke-width="1.5"/>++<!-- Battery level bars -->+<rect x="22" y="38" width="20" height="6" rx="1" fill="#4caf50" opacity="0.9"/>+<rect x="22" y="30" width="20" height="6" rx="1" fill="#4caf50" opacity="0.7"/>+<rect x="22" y="22" width="20" height="6" rx="1" fill="#4caf50" opacity="0.5"/>+<rect x="22" y="14" width="20" height="6" rx="1" fill="#4caf50" opacity="0.3"/>++<!-- Lightning bolt -->+<path d="M35,48 L29,54 L33,54 L29,60 L37,52 L33,52 Z" fill="#f39c12" stroke="#e67e22" stroke-width="0.5"/>++<!-- Terminal connectors -->+<rect x="24" y="4" width="6" height="4" rx="1" fill="#888"/>+<rect x="34" y="4" width="6" height="4" rx="1" fill="#888"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.ev_charger.svg b/src/hi/apps/entity/templates/entity/svg/type.ev_charger.svgnew file mode 100644index 00000000..3cb7dd9a--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.ev_charger.svg@@ -0,0 +1,24 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Charging station body -->+<rect x="18" y="8" width="28" height="40" rx="3" fill="#e0e0e0" stroke="#555" stroke-width="1.5"/>++<!-- Display screen -->+<rect x="23" y="13" width="18" height="10" rx="1" fill="#2c3e50" stroke="#34495e" stroke-width="1"/>++<!-- Lightning bolt on screen -->+<path d="M34,15 L30,20 L33,20 L30,25 L36,19 L33,19 Z" fill="#4caf50"/>++<!-- Charging cable -->+<path d="M32,48 C32,52 28,54 28,58" fill="none" stroke="#555" stroke-width="3" stroke-linecap="round"/>++<!-- Cable plug head -->+<rect x="24" y="57" width="8" height="5" rx="1" fill="#333" stroke="#555" stroke-width="0.5"/>+<rect x="26" y="62" width="2" height="2" rx="0.5" fill="#888"/>+<rect x="30" y="62" width="2" height="2" rx="0.5" fill="#888"/>++<!-- Status LED -->+<circle cx="32" cy="28" r="2" fill="#4caf50"/>++<!-- Mounting post -->+<rect x="29" y="46" width="6" height="4" fill="#888"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.freezer.svg b/src/hi/apps/entity/templates/entity/svg/type.freezer.svgnew file mode 100644index 00000000..cee3db94--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.freezer.svg@@ -0,0 +1,25 @@+<rect class="hi-entity-bg" x="0" y="0" width="48" height="64" fill="none"/>++<!-- Freezer body (single door upright) -->+<rect x="8" y="4" width="32" height="56" rx="3" fill="#f0f4f8" stroke="#2c3e50" stroke-width="2"/>++<!-- Door panel -->+<rect x="10" y="6" width="28" height="52" rx="2" fill="#ffffff" stroke="#bdc3c7" stroke-width="1"/>++<!-- Door handle -->+<rect x="34" y="24" width="2" height="14" rx="1" fill="#34495e"/>++<!-- Snowflake symbol -->+<path d="M24,22 L24,38" stroke="#3498db" stroke-width="1.5" stroke-linecap="round"/>+<path d="M17,30 L31,30" stroke="#3498db" stroke-width="1.5" stroke-linecap="round"/>+<path d="M19,25 L29,35" stroke="#3498db" stroke-width="1.5" stroke-linecap="round"/>+<path d="M29,25 L19,35" stroke="#3498db" stroke-width="1.5" stroke-linecap="round"/>++<!-- Small frost crystals on arms -->+<path d="M22,23 L24,25" stroke="#85c1e9" stroke-width="1" stroke-linecap="round"/>+<path d="M26,23 L24,25" stroke="#85c1e9" stroke-width="1" stroke-linecap="round"/>+<path d="M22,37 L24,35" stroke="#85c1e9" stroke-width="1" stroke-linecap="round"/>+<path d="M26,37 L24,35" stroke="#85c1e9" stroke-width="1" stroke-linecap="round"/>++<!-- Temperature indicator -->+<circle cx="16" cy="12" r="2" fill="#3498db" opacity="0.7"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.garage_door_opener.svg b/src/hi/apps/entity/templates/entity/svg/type.garage_door_opener.svgnew file mode 100644index 00000000..c5e168ab--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.garage_door_opener.svg@@ -0,0 +1,28 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Motor housing unit -->+<rect x="6" y="20" width="24" height="18" rx="2" fill="#e0e0e0" stroke="#555" stroke-width="1.5"/>++<!-- Light bulb cover on motor -->+<circle cx="12" cy="38" r="4" fill="#fff3cd" stroke="#555" stroke-width="1"/>+<circle cx="12" cy="38" r="2" fill="#ffd700" opacity="0.6"/>++<!-- Drive rail -->+<rect x="28" y="27" width="30" height="4" rx="1" fill="#aaa" stroke="#555" stroke-width="1"/>++<!-- Chain/belt on rail -->+<line x1="30" y1="29" x2="56" y2="29" stroke="#777" stroke-width="1" stroke-dasharray="2,2"/>++<!-- Trolley on rail -->+<rect x="44" y="24" width="8" height="10" rx="1" fill="#c0c0c0" stroke="#555" stroke-width="1"/>++<!-- Arm connecting to door -->+<line x1="48" y1="34" x2="48" y2="48" stroke="#555" stroke-width="2" stroke-linecap="round"/>+<line x1="44" y1="48" x2="52" y2="48" stroke="#555" stroke-width="2" stroke-linecap="round"/>++<!-- Mounting brackets -->+<rect x="14" y="16" width="4" height="6" fill="#888"/>+<rect x="54" y="24" width="4" height="4" fill="#888"/>++<!-- Status LED on motor -->+<circle cx="24" cy="25" r="1.5" fill="#4caf50"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.gas_meter.svg b/src/hi/apps/entity/templates/entity/svg/type.gas_meter.svgnew file mode 100644index 00000000..63b7eee1--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.gas_meter.svg@@ -0,0 +1,34 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Meter body -->+<rect x="12" y="14" width="40" height="36" rx="3" fill="#e8e0d0" stroke="#555" stroke-width="1.5"/>++<!-- Dial face -->+<circle cx="32" cy="28" r="11" fill="#fff" stroke="#555" stroke-width="1"/>++<!-- Dial markings -->+<line x1="32" y1="18" x2="32" y2="20" stroke="#555" stroke-width="1"/>+<line x1="32" y1="36" x2="32" y2="38" stroke="#555" stroke-width="1"/>+<line x1="22" y1="28" x2="24" y2="28" stroke="#555" stroke-width="1"/>+<line x1="40" y1="28" x2="42" y2="28" stroke="#555" stroke-width="1"/>++<!-- Dial needle -->+<line x1="32" y1="28" x2="37" y2="23" stroke="#c0392b" stroke-width="1.5" stroke-linecap="round"/>+<circle cx="32" cy="28" r="1.5" fill="#c0392b"/>++<!-- Reading display -->+<rect x="22" y="40" width="20" height="6" rx="1" fill="#333" stroke="#555" stroke-width="0.5"/>+<text x="32" y="45" font-family="monospace" font-size="4" fill="#4caf50" text-anchor="middle">00384</text>++<!-- Input pipe (left) -->+<rect x="2" y="24" width="12" height="6" rx="2" fill="#888" stroke="#555" stroke-width="1"/>++<!-- Output pipe (right) -->+<rect x="50" y="24" width="12" height="6" rx="2" fill="#888" stroke="#555" stroke-width="1"/>++<!-- Shutoff valve on input -->+<rect x="6" y="22" width="4" height="10" rx="1" fill="#c0392b" stroke="#555" stroke-width="0.5"/>++<!-- Mounting bracket -->+<rect x="18" y="10" width="4" height="6" fill="#888"/>+<rect x="42" y="10" width="4" height="6" fill="#888"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.inverter.svg b/src/hi/apps/entity/templates/entity/svg/type.inverter.svgnew file mode 100644index 00000000..13e3ebe0--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.inverter.svg@@ -0,0 +1,37 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Inverter body (wall-mounted box, wider than tall) -->+<rect x="6" y="12" width="52" height="40" rx="3" fill="#e0e0e0" stroke="#555" stroke-width="1.5"/>++<!-- Display screen -->+<rect x="12" y="17" width="24" height="14" rx="1" fill="#2c3e50" stroke="#34495e" stroke-width="1"/>++<!-- DC to AC wave symbol on display -->+<!-- DC flat line -->+<line x1="15" y1="22" x2="21" y2="22" stroke="#4caf50" stroke-width="1.5"/>+<!-- Arrow -->+<path d="M22,24 L25,24" stroke="#4caf50" stroke-width="1" stroke-linecap="round"/>+<path d="M24,22.5 L25,24 L24,25.5" stroke="#4caf50" stroke-width="1" fill="none" stroke-linecap="round"/>+<!-- AC sine wave -->+<path d="M27,24 C28,21 29,21 30,24 C31,27 32,27 33,24" stroke="#4caf50" stroke-width="1.5" fill="none"/>++<!-- Status LEDs -->+<circle cx="42" cy="20" r="2" fill="#4caf50"/>+<circle cx="42" cy="26" r="2" fill="#f39c12"/>+<circle cx="48" cy="20" r="2" fill="#3498db"/>+<circle cx="48" cy="26" r="2" fill="#999" opacity="0.5"/>++<!-- Ventilation grille -->+<line x1="12" y1="36" x2="52" y2="36" stroke="#bbb" stroke-width="0.8"/>+<line x1="12" y1="39" x2="52" y2="39" stroke="#bbb" stroke-width="0.8"/>+<line x1="12" y1="42" x2="52" y2="42" stroke="#bbb" stroke-width="0.8"/>+<line x1="12" y1="45" x2="52" y2="45" stroke="#bbb" stroke-width="0.8"/>++<!-- Cable entry points on bottom -->+<rect x="18" y="50" width="6" height="6" rx="1" fill="#888" stroke="#555" stroke-width="0.5"/>+<rect x="29" y="50" width="6" height="6" rx="1" fill="#888" stroke="#555" stroke-width="0.5"/>+<rect x="40" y="50" width="6" height="6" rx="1" fill="#888" stroke="#555" stroke-width="0.5"/>++<!-- DC/AC labels -->+<text x="21" y="58" font-family="monospace" font-size="4" fill="#555" text-anchor="middle">DC</text>+<text x="43" y="58" font-family="monospace" font-size="4" fill="#555" text-anchor="middle">AC</text>diff --git a/src/hi/apps/entity/templates/entity/svg/type.irrigation_controller.svg b/src/hi/apps/entity/templates/entity/svg/type.irrigation_controller.svgnew file mode 100644index 00000000..15f7eb0a--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.irrigation_controller.svg@@ -0,0 +1,43 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Controller body -->+<rect x="6" y="6" width="52" height="52" rx="3" fill="#f5f5f0" stroke="#555" stroke-width="1.5"/>++<!-- Display screen -->+<rect x="12" y="11" width="28" height="16" rx="1" fill="#d4edda" stroke="#555" stroke-width="1"/>++<!-- Clock display -->+<text x="26" y="20" font-family="monospace" font-size="6" fill="#2c3e50" text-anchor="middle">6:30</text>+<text x="26" y="25" font-family="monospace" font-size="3.5" fill="#555" text-anchor="middle">ZONE 3</text>++<!-- Water drop icon on display -->+<path d="M36,14 C36,14 39,18 39,20 C39,21.7 37.7,23 36,23 C34.3,23 33,21.7 33,20 C33,18 36,14 36,14Z" fill="#3498db" opacity="0.7"/>++<!-- Dial/knob -->+<circle cx="48" cy="19" r="6" fill="#ddd" stroke="#555" stroke-width="1"/>+<circle cx="48" cy="19" r="1" fill="#555"/>+<line x1="48" y1="19" x2="48" y2="14" stroke="#555" stroke-width="1.5" stroke-linecap="round"/>++<!-- Zone buttons (2 rows of 4) -->+<rect x="12" y="32" width="8" height="6" rx="1" fill="#4caf50" stroke="#388e3c" stroke-width="0.5"/>+<rect x="22" y="32" width="8" height="6" rx="1" fill="#4caf50" stroke="#388e3c" stroke-width="0.5"/>+<rect x="32" y="32" width="8" height="6" rx="1" fill="#4caf50" stroke="#388e3c" stroke-width="0.5"/>+<rect x="42" y="32" width="8" height="6" rx="1" fill="#4caf50" stroke="#388e3c" stroke-width="0.5"/>++<rect x="12" y="40" width="8" height="6" rx="1" fill="#81c784" stroke="#388e3c" stroke-width="0.5"/>+<rect x="22" y="40" width="8" height="6" rx="1" fill="#81c784" stroke="#388e3c" stroke-width="0.5"/>+<rect x="32" y="40" width="8" height="6" rx="1" fill="#81c784" stroke="#388e3c" stroke-width="0.5"/>+<rect x="42" y="40" width="8" height="6" rx="1" fill="#81c784" stroke="#388e3c" stroke-width="0.5"/>++<!-- Zone numbers -->+<text x="16" y="37" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">1</text>+<text x="26" y="37" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">2</text>+<text x="36" y="37" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">3</text>+<text x="46" y="37" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">4</text>+<text x="16" y="45" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">5</text>+<text x="26" y="45" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">6</text>+<text x="36" y="45" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">7</text>+<text x="46" y="45" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">8</text>++<!-- Wire entry at bottom -->+<rect x="28" y="56" width="8" height="4" rx="1" fill="#888" stroke="#555" stroke-width="0.5"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.pool_heater.svg b/src/hi/apps/entity/templates/entity/svg/type.pool_heater.svgnew file mode 100644index 00000000..c9433bbe--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.pool_heater.svg@@ -0,0 +1,39 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Heater body (squat rectangular unit) -->+<rect x="6" y="18" width="52" height="36" rx="3" fill="#d0d0d0" stroke="#555" stroke-width="1.5"/>++<!-- Ventilated top panel -->+<rect x="6" y="10" width="52" height="10" rx="3" fill="#bbb" stroke="#555" stroke-width="1.5"/>+<line x1="14" y1="13" x2="14" y2="18" stroke="#999" stroke-width="0.8"/>+<line x1="20" y1="13" x2="20" y2="18" stroke="#999" stroke-width="0.8"/>+<line x1="26" y1="13" x2="26" y2="18" stroke="#999" stroke-width="0.8"/>+<line x1="32" y1="13" x2="32" y2="18" stroke="#999" stroke-width="0.8"/>+<line x1="38" y1="13" x2="38" y2="18" stroke="#999" stroke-width="0.8"/>+<line x1="44" y1="13" x2="44" y2="18" stroke="#999" stroke-width="0.8"/>+<line x1="50" y1="13" x2="50" y2="18" stroke="#999" stroke-width="0.8"/>++<!-- Control panel -->+<rect x="14" y="23" width="20" height="12" rx="1" fill="#f5f5f0" stroke="#555" stroke-width="1"/>++<!-- Temperature display -->+<text x="24" y="31" font-family="monospace" font-size="6" fill="#c0392b" text-anchor="middle">84°</text>++<!-- Heat indicator flames -->+<path d="M40,40 C40,37 42,35 42,32 C42,35 44,37 44,40 C44,42 42,43 42,43 C42,43 40,42 40,40Z" fill="#e74c3c" opacity="0.8"/>+<path d="M46,40 C46,37 48,36 48,34 C48,36 50,37 50,40 C50,42 48,42.5 48,42.5 C48,42.5 46,42 46,40Z" fill="#f39c12" opacity="0.7"/>++<!-- Status LED -->+<circle cx="30" cy="44" r="2" fill="#4caf50"/>++<!-- Pipe connections (left side) -->+<rect x="0" y="30" width="8" height="5" rx="2" fill="#6699cc" stroke="#555" stroke-width="0.8"/>+<rect x="0" y="40" width="8" height="5" rx="2" fill="#cc6666" stroke="#555" stroke-width="0.8"/>++<!-- Flow direction arrows -->+<text x="3" y="34" font-family="sans-serif" font-size="3" fill="#fff" text-anchor="middle">IN</text>+<text x="4" y="44" font-family="sans-serif" font-size="3" fill="#fff" text-anchor="middle">OUT</text>++<!-- Feet/base -->+<rect x="12" y="54" width="6" height="4" rx="1" fill="#888"/>+<rect x="46" y="54" width="6" height="4" rx="1" fill="#888"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.pool_pump.svg b/src/hi/apps/entity/templates/entity/svg/type.pool_pump.svgnew file mode 100644index 00000000..ce21f23d--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.pool_pump.svg@@ -0,0 +1,35 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="48" fill="none"/>++<!-- Motor housing (cylindrical, right side) -->+<rect x="30" y="12" width="28" height="24" rx="12" fill="#2c3e50" stroke="#1a252f" stroke-width="1.5"/>++<!-- Motor cooling vents -->+<line x1="42" y1="14" x2="42" y2="34" stroke="#3d566e" stroke-width="0.8"/>+<line x1="46" y1="14" x2="46" y2="34" stroke="#3d566e" stroke-width="0.8"/>+<line x1="50" y1="15" x2="50" y2="33" stroke="#3d566e" stroke-width="0.8"/>+<line x1="54" y1="17" x2="54" y2="31" stroke="#3d566e" stroke-width="0.8"/>++<!-- Pump housing (volute, left side) -->+<circle cx="22" cy="24" r="14" fill="#d0d0d0" stroke="#555" stroke-width="1.5"/>+<circle cx="22" cy="24" r="9" fill="#e8e8e8" stroke="#999" stroke-width="1"/>++<!-- Strainer lid -->+<circle cx="22" cy="24" r="5" fill="#ccc" stroke="#888" stroke-width="1"/>+<line x1="19" y1="22" x2="25" y2="26" stroke="#888" stroke-width="0.8"/>+<line x1="19" y1="26" x2="25" y2="22" stroke="#888" stroke-width="0.8"/>++<!-- Suction pipe (bottom) -->+<rect x="14" y="36" width="8" height="10" rx="2" fill="#6699cc" stroke="#555" stroke-width="1"/>++<!-- Discharge pipe (top) -->+<rect x="18" y="2" width="8" height="10" rx="2" fill="#6699cc" stroke="#555" stroke-width="1"/>++<!-- Motor shaft connection -->+<rect x="28" y="20" width="4" height="8" fill="#888" stroke="#555" stroke-width="0.5"/>++<!-- Base plate -->+<rect x="8" y="38" width="48" height="4" rx="1" fill="#888" stroke="#555" stroke-width="1"/>++<!-- Mounting feet -->+<rect x="12" y="42" width="8" height="4" rx="1" fill="#666"/>+<rect x="44" y="42" width="8" height="4" rx="1" fill="#666"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.pool_swg.svg b/src/hi/apps/entity/templates/entity/svg/type.pool_swg.svgnew file mode 100644index 00000000..8a90eb82--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.pool_swg.svg@@ -0,0 +1,43 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Control box body -->+<rect x="8" y="4" width="48" height="38" rx="3" fill="#e8e8e8" stroke="#555" stroke-width="1.5"/>++<!-- Display screen -->+<rect x="14" y="9" width="24" height="14" rx="1" fill="#1a1a2e" stroke="#333" stroke-width="1"/>++<!-- Salt level display -->+<text x="26" y="16" font-family="monospace" font-size="5" fill="#4caf50" text-anchor="middle">3200</text>+<text x="26" y="21" font-family="monospace" font-size="3" fill="#888" text-anchor="middle">PPM</text>++<!-- Status LEDs -->+<circle cx="43" cy="12" r="2" fill="#4caf50"/>+<circle cx="43" cy="18" r="2" fill="#f39c12"/>+<circle cx="49" cy="12" r="2" fill="#3498db"/>+<circle cx="49" cy="18" r="2" fill="#999" opacity="0.4"/>++<!-- Output % dial -->+<circle cx="26" cy="33" r="6" fill="#ddd" stroke="#555" stroke-width="1"/>+<circle cx="26" cy="33" r="1" fill="#555"/>+<line x1="26" y1="33" x2="29" y2="29" stroke="#555" stroke-width="1.5" stroke-linecap="round"/>++<!-- Boost button -->+<rect x="36" y="28" width="14" height="8" rx="2" fill="#3498db" stroke="#2980b9" stroke-width="0.5"/>+<text x="43" y="33.5" font-family="sans-serif" font-size="4" fill="#fff" text-anchor="middle">BOOST</text>++<!-- Cable to cell -->+<path d="M32,42 L32,46" stroke="#555" stroke-width="2" stroke-linecap="round"/>++<!-- Electrolytic cell (inline pipe section) -->+<rect x="16" y="46" width="32" height="14" rx="4" fill="#c0c0c0" stroke="#555" stroke-width="1.5"/>++<!-- Cell electrode plates inside -->+<line x1="24" y1="49" x2="24" y2="57" stroke="#888" stroke-width="1"/>+<line x1="28" y1="49" x2="28" y2="57" stroke="#888" stroke-width="1"/>+<line x1="32" y1="49" x2="32" y2="57" stroke="#888" stroke-width="1"/>+<line x1="36" y1="49" x2="36" y2="57" stroke="#888" stroke-width="1"/>+<line x1="40" y1="49" x2="40" y2="57" stroke="#888" stroke-width="1"/>++<!-- Pipe connections -->+<rect x="6" y="49" width="12" height="6" rx="2" fill="#6699cc" stroke="#555" stroke-width="0.8"/>+<rect x="46" y="49" width="12" height="6" rx="2" fill="#6699cc" stroke="#555" stroke-width="0.8"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.radon_detector.svg b/src/hi/apps/entity/templates/entity/svg/type.radon_detector.svgnew file mode 100644index 00000000..fdc71f33--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.radon_detector.svg@@ -0,0 +1,26 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Detector body (small desktop unit, rounded) -->+<rect x="10" y="14" width="44" height="40" rx="6" fill="#f5f5f5" stroke="#555" stroke-width="1.5"/>++<!-- Display screen -->+<rect x="16" y="19" width="32" height="18" rx="2" fill="#1a1a2e" stroke="#333" stroke-width="1"/>++<!-- Radon reading -->+<text x="32" y="30" font-family="monospace" font-size="10" fill="#4caf50" text-anchor="middle">0.8</text>+<text x="32" y="35" font-family="monospace" font-size="3.5" fill="#888" text-anchor="middle">pCi/L</text>++<!-- Rn symbol -->+<text x="32" y="48" font-family="serif" font-size="8" font-weight="bold" fill="#777" text-anchor="middle">Rn</text>++<!-- Status indicator -->+<circle cx="44" cy="46" r="3" fill="#4caf50" stroke="#388e3c" stroke-width="0.5"/>++<!-- Air intake vents (sides) -->+<line x1="11" y1="28" x2="11" y2="32" stroke="#ccc" stroke-width="1.5" stroke-linecap="round"/>+<line x1="11" y1="34" x2="11" y2="38" stroke="#ccc" stroke-width="1.5" stroke-linecap="round"/>+<line x1="11" y1="40" x2="11" y2="44" stroke="#ccc" stroke-width="1.5" stroke-linecap="round"/>++<line x1="53" y1="28" x2="53" y2="32" stroke="#ccc" stroke-width="1.5" stroke-linecap="round"/>+<line x1="53" y1="34" x2="53" y2="38" stroke="#ccc" stroke-width="1.5" stroke-linecap="round"/>+<line x1="53" y1="40" x2="53" y2="44" stroke="#ccc" stroke-width="1.5" stroke-linecap="round"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.sump_pump.svg b/src/hi/apps/entity/templates/entity/svg/type.sump_pump.svgnew file mode 100644index 00000000..ffe7a330--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.sump_pump.svg@@ -0,0 +1,37 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Sump pit (cross-section view) -->+<path d="M8,28 L8,56 C8,60 14,62 14,62 L50,62 C50,62 56,60 56,56 L56,28" fill="#8d6e63" stroke="#5d4037" stroke-width="1.5" fill-opacity="0.3"/>++<!-- Water level in pit -->+<rect x="10" y="42" width="44" height="19" rx="2" fill="#90caf9" opacity="0.4"/>++<!-- Pit rim / floor line -->+<line x1="4" y1="28" x2="60" y2="28" stroke="#5d4037" stroke-width="2"/>++<!-- Pump body (cylindrical) -->+<rect x="22" y="34" width="20" height="22" rx="3" fill="#555" stroke="#333" stroke-width="1.5"/>++<!-- Motor housing top -->+<rect x="24" y="30" width="16" height="6" rx="2" fill="#444" stroke="#333" stroke-width="1"/>++<!-- Discharge pipe going up -->+<rect x="38" y="6" width="6" height="30" rx="1" fill="#888" stroke="#555" stroke-width="1"/>++<!-- Discharge pipe elbow -->+<path d="M41,36 C41,36 44,36 44,33" fill="none" stroke="#555" stroke-width="6"/>+<path d="M41,36 C41,36 44,36 44,33" fill="none" stroke="#888" stroke-width="4"/>++<!-- Check valve on discharge -->+<rect x="36" y="16" width="10" height="5" rx="1" fill="#c0392b" stroke="#555" stroke-width="0.5"/>++<!-- Float switch -->+<circle cx="18" cy="44" r="4" fill="#f39c12" stroke="#e67e22" stroke-width="1"/>+<line x1="18" y1="40" x2="18" y2="34" stroke="#555" stroke-width="1" stroke-linecap="round"/>++<!-- Power cord -->+<path d="M30,30 C28,24 26,20 24,14 C23,10 20,8 20,4" fill="none" stroke="#333" stroke-width="1.5" stroke-linecap="round"/>++<!-- Pit cover (partial, showing cutaway) -->+<line x1="4" y1="28" x2="18" y2="28" stroke="#777" stroke-width="3"/>+<line x1="46" y1="28" x2="60" y2="28" stroke="#777" stroke-width="3"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.water_filter.svg b/src/hi/apps/entity/templates/entity/svg/type.water_filter.svgnew file mode 100644index 00000000..f3c752af--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.water_filter.svg@@ -0,0 +1,35 @@+<rect class="hi-entity-bg" x="0" y="0" width="48" height="64" fill="none"/>++<!-- Filter canister (tall cylinder) -->+<rect x="12" y="14" width="24" height="46" rx="4" fill="#e8f4f8" stroke="#555" stroke-width="1.5"/>++<!-- Canister bands -->+<line x1="12" y1="26" x2="36" y2="26" stroke="#999" stroke-width="0.8"/>+<line x1="12" y1="38" x2="36" y2="38" stroke="#999" stroke-width="0.8"/>+<line x1="12" y1="50" x2="36" y2="50" stroke="#999" stroke-width="0.8"/>++<!-- Filter media visible inside (translucent) -->+<rect x="16" y="28" width="16" height="10" fill="#90caf9" opacity="0.3" rx="1"/>+<rect x="16" y="40" width="16" height="10" fill="#bbdefb" opacity="0.3" rx="1"/>++<!-- Head unit on top -->+<rect x="10" y="8" width="28" height="8" rx="2" fill="#888" stroke="#555" stroke-width="1.5"/>++<!-- Pressure gauge -->+<circle cx="24" cy="12" r="3" fill="#fff" stroke="#555" stroke-width="0.8"/>+<line x1="24" y1="12" x2="26" y2="10" stroke="#c0392b" stroke-width="0.8" stroke-linecap="round"/>++<!-- Pressure release button -->+<circle cx="34" cy="12" r="2" fill="#c0392b" stroke="#555" stroke-width="0.5"/>++<!-- Input pipe (left) -->+<rect x="2" y="10" width="10" height="5" rx="2" fill="#6699cc" stroke="#555" stroke-width="0.8"/>++<!-- Output pipe (right) -->+<rect x="36" y="10" width="10" height="5" rx="2" fill="#6699cc" stroke="#555" stroke-width="0.8"/>++<!-- Water drop icon -->+<path d="M24,54 C24,54 27,57 27,59 C27,60.7 25.7,61 24,61 C22.3,61 21,60.7 21,59 C21,57 24,54 24,54Z" fill="#3498db" opacity="0.6"/>++<!-- Base -->+<rect x="14" y="58" width="20" height="4" rx="1" fill="#777"/>diff --git a/src/hi/apps/entity/templates/entity/svg/type.water_softener.svg b/src/hi/apps/entity/templates/entity/svg/type.water_softener.svgnew file mode 100644index 00000000..7a0a3a0e--- /dev/null+++ b/src/hi/apps/entity/templates/entity/svg/type.water_softener.svg@@ -0,0 +1,39 @@+<rect class="hi-entity-bg" x="0" y="0" width="64" height="64" fill="none"/>++<!-- Resin tank (tall cylinder, left) -->+<rect x="6" y="14" width="20" height="46" rx="4" fill="#d4c5a9" stroke="#555" stroke-width="1.5"/>++<!-- Control valve head -->+<rect x="4" y="8" width="24" height="8" rx="2" fill="#555" stroke="#333" stroke-width="1.5"/>++<!-- Display on control head -->+<rect x="8" y="10" width="12" height="4" rx="1" fill="#1a1a2e" stroke="#333" stroke-width="0.5"/>+<text x="14" y="13.5" font-family="monospace" font-size="3" fill="#4caf50" text-anchor="middle">REGEN</text>++<!-- Buttons on control head -->+<circle cx="24" cy="12" r="1.5" fill="#c0392b"/>++<!-- Pipe connections from head -->+<rect x="0" y="10" width="6" height="4" rx="1" fill="#6699cc" stroke="#555" stroke-width="0.5"/>+<rect x="26" y="10" width="6" height="4" rx="1" fill="#6699cc" stroke="#555" stroke-width="0.5"/>++<!-- Brine tank (shorter, wider, right) -->+<rect x="36" y="24" width="24" height="36" rx="4" fill="#e0ddd0" stroke="#555" stroke-width="1.5"/>++<!-- Brine tank lid -->+<rect x="34" y="20" width="28" height="6" rx="3" fill="#ccc" stroke="#555" stroke-width="1"/>++<!-- Salt level visible inside brine tank -->+<rect x="38" y="40" width="20" height="18" rx="2" fill="#fff" opacity="0.5"/>+<!-- Salt granules -->+<circle cx="43" cy="48" r="1.5" fill="#f5f5f0" stroke="#ddd" stroke-width="0.5"/>+<circle cx="48" cy="45" r="1.5" fill="#f5f5f0" stroke="#ddd" stroke-width="0.5"/>+<circle cx="53" cy="47" r="1.5" fill="#f5f5f0" stroke="#ddd" stroke-width="0.5"/>+<circle cx="45" cy="52" r="1.5" fill="#f5f5f0" stroke="#ddd" stroke-width="0.5"/>+<circle cx="50" cy="50" r="1.5" fill="#f5f5f0" stroke="#ddd" stroke-width="0.5"/>+<circle cx="42" cy="55" r="1.5" fill="#f5f5f0" stroke="#ddd" stroke-width="0.5"/>+<circle cx="48" cy="54" r="1.5" fill="#f5f5f0" stroke="#ddd" stroke-width="0.5"/>+<circle cx="54" cy="53" r="1.5" fill="#f5f5f0" stroke="#ddd" stroke-width="0.5"/>++<!-- Brine tube connecting tanks -->+<path d="M26,14 C30,14 34,18 34,22" fill="none" stroke="#555" stroke-width="1.5" stroke-linecap="round"/>diff --git a/src/hi/hi_styles.py b/src/hi/hi_styles.pyindex 270a9a89..d31eb4d0 100644--- a/src/hi/hi_styles.py+++ b/src/hi/hi_styles.py@@ -193,6 +193,22 @@ class EntityStyle:fill_color = None,fill_opacity = 0.0,)+ GarageDoor = SvgStatusStyle(+ status_value = '',+ stroke_color = '#888888',+ stroke_width = 3,+ stroke_dasharray = [],+ fill_color = '#b0b0b0',+ fill_opacity = 1,+ )+ GasLine = SvgStatusStyle(+ status_value = '',+ stroke_color = '#CCAA00',+ stroke_width = 3,+ stroke_dasharray = [ 6, 3 ],+ fill_color = None,+ fill_opacity = 0.0,+ )SewerLine = SvgStatusStyle(status_value = '',stroke_color = '#008000',@@ -251,6 +267,7 @@ class EntityStyle:EntityType.AUTOMOBILE,EntityType.AV_RECEIVER,EntityType.BAROMETER,+ EntityType.BATTERY_STORAGE,EntityType.BATHTUB,EntityType.CAMERA,EntityType.CARBON_MONOXIDE_DETECTOR,@@ -269,10 +286,14 @@ class EntityStyle:EntityType.ELECTRICAL_OUTLET,EntityType.ELECTRICITY_METER,EntityType.ELECTRIC_PANEL,+ EntityType.EV_CHARGER,EntityType.EXHAUST_FAN,EntityType.FIRE_EXTINGUISHER,EntityType.FIREPLACE,+ EntityType.FREEZER,+ EntityType.GARAGE_DOOR_OPENER,EntityType.GARBAGE_DISPOSAL,+ EntityType.GAS_METER,EntityType.GENERATOR,EntityType.GRILL,EntityType.HEALTHCHECK,@@ -283,6 +304,8 @@ class EntityStyle:EntityType.HVAC_FURNACE,EntityType.HVAC_MINI_SPLIT,EntityType.HYGROMETER,+ EntityType.INVERTER,+ EntityType.IRRIGATION_CONTROLLER,EntityType.LAWN_MOWER,EntityType.LEAF_BLOWER,EntityType.LIGHT,@@ -297,6 +320,9 @@ class EntityStyle:EntityType.OVEN,EntityType.PLANT,EntityType.POOL_FILTER,+ EntityType.POOL_HEATER,+ EntityType.POOL_PUMP,+ EntityType.POOL_SWG,EntityType.POWER_WASHER,EntityType.PRESENCE_SENSOR,EntityType.PRINTER,@@ -309,11 +335,13 @@ class EntityStyle:EntityType.SHOWER,EntityType.SINK,EntityType.SKYLIGHT,+ EntityType.RADON_DETECTOR,EntityType.SMOKE_DETECTOR,EntityType.SOLAR_PANEL,EntityType.SPEAKER,EntityType.SPRINKLER_HEAD,EntityType.SPRINKLER_VALVE,+ EntityType.SUMP_PUMP,EntityType.TELECOM_BOX,EntityType.TELEVISION,EntityType.THERMOMETER,@@ -326,8 +354,10 @@ class EntityStyle:EntityType.UPS,EntityType.VANITY,EntityType.WALL_SWITCH,+ EntityType.WATER_FILTER,EntityType.WATER_HEATER,EntityType.WATER_METER,+ EntityType.WATER_SOFTENER,EntityType.WATER_SHUTOFF_VALVE,EntityType.WEATHER_STATION,}@@ -349,7 +379,9 @@ class EntityStyle:EntityType.NETWORK_SWITCH: SvgViewBox( x = 0, y = 0, width = 64, height = 32 ),EntityType.ON_OFF_SWITCH: SvgViewBox( x = 0, y = 0, width = 44, height = 64 ),EntityType.OPEN_CLOSE_SENSOR: SvgViewBox( x = 0, y = 0, width = 64, height = 50 ),+ EntityType.POOL_PUMP: SvgViewBox( x = 0, y = 0, width = 64, height = 48 ),EntityType.PUMP: SvgViewBox( x = 0, y = 0, width = 64, height = 45 ),+ EntityType.FREEZER: SvgViewBox( x = 0, y = 0, width = 48, height = 64 ),EntityType.REFRIGERATOR: SvgViewBox( x = 0, y = 0, width = 48, height = 64 ),EntityType.SERVER: SvgViewBox( x = 0, y = 0, width = 45, height = 64 ),EntityType.SINK: SvgViewBox( x = 0, y = 0, width = 64, height = 50 ),@@ -360,6 +392,7 @@ class EntityStyle:EntityType.THERMOSTAT: SvgViewBox( x = 0, y = 0, width = 64, height = 44 ),EntityType.TOILET: SvgViewBox( x = 0, y = 0, width = 48, height = 64 ),EntityType.WALL_SWITCH: SvgViewBox( x = 0, y = 0, width = 42, height = 64 ),+ EntityType.WATER_FILTER: SvgViewBox( x = 0, y = 0, width = 48, height = 64 ),EntityType.WATER_HEATER: SvgViewBox( x = 0, y = 0, width = 38, height = 64 ),EntityType.WATER_METER: SvgViewBox( x = 0, y = 0, width = 64, height = 43 ),}@@ -372,6 +405,8 @@ class EntityStyle:EntityType.ELECTRIC_WIRE: ElectricWire,EntityType.FENCE: Fence,EntityType.FURNITURE: Furniture,+ EntityType.GARAGE_DOOR: GarageDoor,+ EntityType.GAS_LINE: GasLine,EntityType.GREENHOUSE: Greenhouse,EntityType.PIPE: Pipe,EntityType.SEWER_LINE: SewerLine,