name: Smartplug primary_entity: entity: switch dps: - id: 1 type: boolean name: switch - id: 41 type: string name: cycle_timer optional: true - id: 42 type: string name: random_timer optional: true - id: 43 type: string name: inching secondary_entities: - entity: number name: Timer category: config icon: "mdi:timer" dps: - id: 9 type: integer name: value unit: min range: min: 0 max: 86400 mapping: - scale: 60 step: 60 - entity: sensor name: Energy category: diagnostic dps: - id: 17 type: integer name: sensor unit: Wh optional: true - entity: sensor class: current category: diagnostic dps: - id: 18 type: integer name: sensor unit: mA class: measurement - entity: sensor class: power category: diagnostic dps: - id: 19 type: integer name: sensor unit: W class: measurement mapping: - scale: 10 - entity: sensor class: voltage category: diagnostic dps: - id: 20 type: integer name: sensor unit: V class: measurement mapping: - scale: 10 - entity: select name: Initial state icon: "mdi:toggle-switch" category: config dps: - id: 38 type: string name: option mapping: - dps_val: power_off value: "Off" - dps_val: power_on value: "On" - dps_val: last value: "Last state" - entity: select name: Backlight icon: "mdi:television-ambient-light" category: config dps: - id: 39 type: string name: option mapping: - dps_val: relay value: State - dps_val: pos value: Position - dps_val: none value: "Off" - entity: lock name: Child lock icon: "mdi:hand-back-right-off" category: config dps: - id: 40 type: boolean name: lock