From 8afa70a999ed9f4967ea5be9ef96fbb14e74e134 Mon Sep 17 00:00:00 2001 From: GrKoR Date: Fri, 17 Nov 2023 00:04:55 +0300 Subject: [PATCH] new: advanced example have slider for power limitation function. --- examples/advanced/ac_common.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/advanced/ac_common.yaml b/examples/advanced/ac_common.yaml index 6698f7b..23a270a 100644 --- a/examples/advanced/ac_common.yaml +++ b/examples/advanced/ac_common.yaml @@ -215,3 +215,15 @@ number: - aux_ac.vlouver_set: id: aux_id position: !lambda "return x;" + + - platform: template + name: ${upper_devicename} Power Limit + id: ${devicename}_power_limit + icon: "mdi:battery-unknown" + mode: "slider" + min_value: 30 + max_value: 100 + step: 1 + set_action: + then: + - lambda: !lambda "id(aux_id).powerLimitationOnSequence( x );"