From f9b6d49188b1da3301710fa62f6fea8d1bd0efd7 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 9 Feb 2022 19:01:37 -0500 Subject: [PATCH 1/3] Localtuya configs added --- configuration.yaml | 2 + localtuya.yaml | 108 +++++++++++++++++++++++++++++++++++++++++++++ readme.md | 1 + 3 files changed, 111 insertions(+) create mode 100644 localtuya.yaml diff --git a/configuration.yaml b/configuration.yaml index c0b7b28..d492534 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -110,3 +110,5 @@ spotcast: sp_key: !secret sp_key breaking_changes: + +localtuya: !include localtuya.yaml diff --git a/localtuya.yaml b/localtuya.yaml new file mode 100644 index 0000000..6b3882c --- /dev/null +++ b/localtuya.yaml @@ -0,0 +1,108 @@ +- host: 192.168.1.135 + device_id: !secret dining_room_blue_id + local_key: !secret dining_room_blue_key + friendly_name: Dining Room Lamp - Blue + protocol_version: "3.3" + entities: + - platform: light + friendly_name: Dining Room Lamp - Blue Bulb + id: 1 + brightness: 2 + brightness_lower: 29 + brightness_upper: 255 +- host: 192.168.1.136 + device_id: !secret dining_room_white_id + local_key: !secret dining_room_white_key + friendly_name: Dining Room Lamp - White + protocol_version: "3.3" + entities: + - platform: light + friendly_name: Dining Room Lamp - White Bulb + id: 1 + brightness: 2 + brightness_lower: 29 + brightness_upper: 255 +- host: 192.168.1.137 + device_id: !secret dining_room_green_id + local_key: !secret dining_room_green_key + friendly_name: Dining Room Lamp - Green + protocol_version: "3.3" + entities: + - platform: light + friendly_name: Dining Room Lamp - Green Bulp + id: 1 + brightness: 2 + brightness_lower: 29 + brightness_upper: 255 +- host: 192.168.1.138 + device_id: !secret dining_room_red_id + local_key: !secret dining_room_red_key + friendly_name: Dining Room Lamp - Red + protocol_version: "3.3" + entities: + - platform: light + friendly_name: Dining Room Lamp - Red Bulb + id: 1 + brightness: 2 + brightness_lower: 29 + brightness_upper: 255 +- host: 192.168.1.139 + device_id: !secret dining_room_purple_id + local_key: !secret dining_room_purple_key + friendly_name: Dining Room Lamp - Purple + protocol_version: "3.3" + entities: + - platform: light + friendly_name: Dining Room Lamp - Purple Bulb + id: 1 + 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 Plug 1 - Socket + 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 Bedroom Plug 1 - Socket + 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: Dining Room Plug 1 - Socket + 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 Plug 1 - Socket + id: 1 + current: 18 + current_consumption: 19 + voltage: 20 diff --git a/readme.md b/readme.md index 376072f..5224f44 100644 --- a/readme.md +++ b/readme.md @@ -18,6 +18,7 @@ # HACS Components - [Node-RED Companion](https://github.com/zachowj/hass-node-red) - [Holidays](https://github.com/bruxy70/Holidays) - [Twitch Helix](https://github.com/Radioh/ha_twitch_helix) +- [Local Tuya](https://github.com/rospogrigio/localtuya) # HACS Lovelace Cards Again, mostly just the ones I'm **using** or **will use soon** From 08dfc821c84dbd0bda809d2f25099af6bc0d7381 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 9 Feb 2022 19:11:18 -0500 Subject: [PATCH 2/3] Changes to attempt to break less of my scripts/automations --- localtuya.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/localtuya.yaml b/localtuya.yaml index 6b3882c..7026210 100644 --- a/localtuya.yaml +++ b/localtuya.yaml @@ -5,7 +5,7 @@ protocol_version: "3.3" entities: - platform: light - friendly_name: Dining Room Lamp - Blue Bulb + friendly_name: Dining Room Lamp - Blue id: 1 brightness: 2 brightness_lower: 29 @@ -17,7 +17,7 @@ protocol_version: "3.3" entities: - platform: light - friendly_name: Dining Room Lamp - White Bulb + friendly_name: Dining Room Lamp - White id: 1 brightness: 2 brightness_lower: 29 @@ -29,7 +29,7 @@ protocol_version: "3.3" entities: - platform: light - friendly_name: Dining Room Lamp - Green Bulp + friendly_name: Dining Room Lamp - Green id: 1 brightness: 2 brightness_lower: 29 @@ -41,7 +41,7 @@ protocol_version: "3.3" entities: - platform: light - friendly_name: Dining Room Lamp - Red Bulb + friendly_name: Dining Room Lamp - Red id: 1 brightness: 2 brightness_lower: 29 @@ -53,7 +53,7 @@ protocol_version: "3.3" entities: - platform: light - friendly_name: Dining Room Lamp - Purple Bulb + friendly_name: Dining Room Lamp - Purple id: 1 brightness: 2 brightness_lower: 29 @@ -65,7 +65,7 @@ protocol_version: "3.3" entities: - platform: switch - friendly_name: Master Bedroom Plug 1 - Socket + friendly_name: Master Bedroom Fan Socket 1 id: 1 current: 18 current_consumption: 19 @@ -77,7 +77,7 @@ protocol_version: "3.3" entities: - platform: switch - friendly_name: Kallen Bedroom Plug 1 - Socket + friendly_name: Kallen Fan Socket 1 id: 1 current: 18 current_consumption: 19 @@ -89,7 +89,7 @@ protocol_version: "3.3" entities: - platform: switch - friendly_name: Dining Room Plug 1 - Socket + friendly_name: Unused Plug 1 id: 1 current: 18 current_consumption: 19 @@ -101,7 +101,7 @@ protocol_version: "3.3" entities: - platform: switch - friendly_name: Basement Plug 1 - Socket + friendly_name: Basement Socket 1 id: 1 current: 18 current_consumption: 19 From 33ef10f32702c41260025b5324d783b319204d03 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 9 Feb 2022 19:28:32 -0500 Subject: [PATCH 3/3] Removed plugs for now, will troubleshoot later --- localtuya.yaml | 96 +++++++++++++++++++++++++------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/localtuya.yaml b/localtuya.yaml index 7026210..cabb68f 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: 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