From c8eb0a3053a13c971fe55577db1344f6fdac55d4 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 11 Feb 2022 15:28:48 -0500 Subject: [PATCH 1/2] Got plugs working via LocalTuya finally --- localtuya.yaml | 96 +++++++++++++++++++++++++------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/localtuya.yaml b/localtuya.yaml index cabb68f..e04f3c2 100644 --- a/localtuya.yaml +++ b/localtuya.yaml @@ -58,51 +58,51 @@ brightness: 2 brightness_lower: 29 brightness_upper: 255 -# - host: 192.168.1.52 -# device_id: !secret master_bedroom_plug_1_id -# local_key: !secret master_bedroom_plug_1_key -# friendly_name: Master Bedroom Plug 1 -# protocol_version: "3.3" -# entities: -# - platform: switch -# friendly_name: Master Bedroom Fan Socket 1 -# id: 1 -# current: 18 -# current_consumption: 19 -# voltage: 20 -# - host: 192.168.1.51 -# device_id: !secret kallen_plug_1_id -# local_key: !secret kallen_plug_2_key -# friendly_name: Kallen Bedroom Plug 1 -# protocol_version: "3.3" -# entities: -# - platform: switch -# friendly_name: Kallen Fan Socket 1 -# id: 1 -# current: 18 -# current_consumption: 19 -# voltage: 20 -# - host: 192.168.1.54 -# device_id: !secret dining_room_plug_1_id -# local_key: !secret dining_room_plug_1_key -# friendly_name: Dining Room Plug 1 -# protocol_version: "3.3" -# entities: -# - platform: switch -# friendly_name: Unused Plug 1 -# id: 1 -# current: 18 -# current_consumption: 19 -# voltage: 20 -# - host: 192.168.1.53 -# device_id: !secret basement_plug_1_id -# local_key: !secret basement_plug_1_key -# friendly_name: Basement Plug 1 -# protocol_version: "3.3" -# entities: -# - platform: switch -# friendly_name: Basement Socket 1 -# id: 1 -# current: 18 -# current_consumption: 19 -# voltage: 20 +- host: 192.168.1.52 + device_id: !secret master_bedroom_plug_1_id + local_key: !secret master_bedroom_plug_1_key + friendly_name: Master Bedroom Plug 1 + protocol_version: "3.3" + entities: + - platform: switch + friendly_name: Master Bedroom Fan Socket 1 + id: 1 + current: 11 +# current_consumption: 19 +# voltage: 20 +- host: 192.168.1.51 + device_id: !secret kallen_plug_1_id + local_key: !secret kallen_plug_2_key + friendly_name: Kallen Bedroom Plug 1 + protocol_version: "3.3" + entities: + - platform: switch + friendly_name: Kallen Fan Socket 1 + id: 1 + current: 11 +# current_consumption: 19 +# voltage: 20 +- host: 192.168.1.54 + device_id: !secret dining_room_plug_1_id + local_key: !secret dining_room_plug_1_key + friendly_name: Dining Room Plug 1 + protocol_version: "3.3" + entities: + - platform: switch + friendly_name: Unused Plug 1 + id: 1 + current: 11 +# current_consumption: 19 +# voltage: 20 +- host: 192.168.1.53 + device_id: !secret basement_plug_1_id + local_key: !secret basement_plug_1_key + friendly_name: Basement Plug 1 + protocol_version: "3.3" + entities: + - platform: switch + friendly_name: Basement Socket 1 + id: 1 + current: 11 +# current_consumption: 19 +# voltage: 20 From 1e7e7319ea48898b653a33b3abfc2cc155e15729 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 11 Feb 2022 15:35:18 -0500 Subject: [PATCH 2/2] Typo in K's secret key --- localtuya.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localtuya.yaml b/localtuya.yaml index e04f3c2..4ea7e0d 100644 --- a/localtuya.yaml +++ b/localtuya.yaml @@ -72,7 +72,7 @@ # voltage: 20 - host: 192.168.1.51 device_id: !secret kallen_plug_1_id - local_key: !secret kallen_plug_2_key + local_key: !secret kallen_plug_1_key friendly_name: Kallen Bedroom Plug 1 protocol_version: "3.3" entities: