I am trying to do the same with entity: switch.mini_plug_with_power_meter using this code but it only has this in a single card. When I try to add a similar configuration with two entities in a card, yaml complains. What am I doing wrong? Tread lightly, I have been working on it for several hours trying to figure it out.
type: entities
entities:
- entity: switch.outdoor_smart_plug_with_power_meter
- type: conditional
conditions:
- entity: switch.outdoor_smart_plug_with_power_meter
state: "on"
row:
entity: sensor.outdoor_smart_plug_with_power_meter_electric_consumption_a
- type: conditional
conditions:
- entity: switch.outdoor_smart_plug_with_power_meter
state: "on"
row:
entity: sensor.outdoor_smart_plug_with_power_meter_electric_consumption_w
- type: conditional
conditions:
- entity: switch.outdoor_smart_plug_with_power_meter
state: "on"
row:
entity: sensor.outdoor_smart_plug_with_power_meter_electric_consumption_kwh
- type: conditional
conditions:
- entity: switch.outdoor_smart_plug_with_power_meter
state: "on"
row:
entity: sensor.outdoor_smart_plug_with_power_meter_electric_consumption_v
title: Pumps
state_color: true
type: entities
entities:
- entity: switch.office_minoston
name: "Dehumidifer "
- entity: switch.mini_plug_with_power_meter
title: Master Bath
state_color: true