u
This commit is contained in:
@@ -163,12 +163,9 @@ class ViewManager extends Component {
|
||||
const channel = rule.action?.channel || '';
|
||||
const emojis = {
|
||||
'CircFanLevel': '🌀',
|
||||
'TentLightLevel': '💡',
|
||||
'TentExhaustLevel': '💨',
|
||||
'RoomExhaustLevel': '🌬️',
|
||||
'CO2Valve': '🫧',
|
||||
'BigDehumid': '💧',
|
||||
'TentDehumid': '💦'
|
||||
'TentExhaust': '💨'
|
||||
};
|
||||
return emojis[channel] || '⚡';
|
||||
};
|
||||
@@ -200,8 +197,8 @@ class ViewManager extends Component {
|
||||
}
|
||||
return `📅 ${operator} ${value}`;
|
||||
case 'sensor':
|
||||
const sensorName = channel?.split(':').pop() || channel;
|
||||
return `📡 ${sensorName} ${op} ${value}`;
|
||||
// Show device:channel for clarity (e.g. "ac:controller:humidity")
|
||||
return `📡 ${channel} ${op} ${value}`;
|
||||
case 'output':
|
||||
return `⚙️ ${channel} ${op} ${value}`;
|
||||
default:
|
||||
@@ -214,12 +211,9 @@ class ViewManager extends Component {
|
||||
if (!action?.channel) return '?';
|
||||
const channelNames = {
|
||||
'CircFanLevel': '🌀 Circ Fan',
|
||||
'TentLightLevel': '💡 Tent Light',
|
||||
'TentExhaustLevel': '💨 Tent Exhaust',
|
||||
'RoomExhaustLevel': '🌬️ Room Exhaust',
|
||||
'CO2Valve': '🫧 CO2',
|
||||
'BigDehumid': '💧 Big Dehumid',
|
||||
'TentDehumid': '💦 Tent Dehumid'
|
||||
'TentExhaust': '💨 Tent Exhaust Fan'
|
||||
};
|
||||
const name = channelNames[action.channel] || action.channel;
|
||||
return `${name} = ${action.value}`;
|
||||
|
||||
Reference in New Issue
Block a user