hottis modbus relay 6

This commit is contained in:
2025-11-27 17:34:08 +01:00
parent 3d759bd3ff
commit db43854156
3 changed files with 111 additions and 0 deletions

View File

@@ -231,6 +231,7 @@
'thermostat': '🌡️',
'contact': '🚪',
'temp_humidity_sensor': '🌡️',
'three_phase_powermeter': '📊',
'relay': '💡',
'outlet': '💡',
'cover': '🪟'
@@ -403,6 +404,15 @@
}
break;
case 'three_phase_powermeter':
if (state.total_power != null) {
html = `<div class="state-primary">${state.total_power.toFixed(0)} W</div>`;
if (state.energy != null) {
html += `<div class="state-secondary">${state.energy.toFixed(2)} kWh</div>`;
}
}
break;
case 'relay':
case 'outlet':
if (state.power) {