Home Assistant Tuya Local Settings


Info re the Kogan Smartplug
https://zorruno.com/w/KoganSmartPlugNotes

Kogan Smart Plug Home Assistant Config


text

localtuya:
  - host: 192.168.<redacted>
	device_id: <redacted>
	local_key: <redacted>
	friendly_name: Kogan Plug Tuya
	protocol_version: "3.3"
	entities:
	  - platform: binary_sensor
		friendly_name: Plug Status
		id: 1
		device_class: power
		state_on: "true" # Optional
		state_off: "false" # Optional
	  - platform: switch
		friendly_name: Plug Switch
		id: 1
		current: 18 # Optional
		current_consumption: 19 # Optional
		voltage: 20 # Optional
	  - platform: sensor
		friendly_name: Plug Voltage
		id: 20
		scaling: 0.1 # Optional
		device_class: voltage # Optional
		unit_of_measurement: "V" # Optional
	  - platform: sensor
		friendly_name: Plug Power
		id: 19
		scaling: 0.1 # Optional
		device_class: current # Optional
		unit_of_measurement: "W" # Optional
	  - platform: sensor
		friendly_name: Plug Current
		id: 18
		scaling: 0.1 # Optional
		device_class: current # Optional
		unit_of_measurement: "mA" # Optional



Last edited by ZorrUno
Thu, 12 Aug 2021 23:53 UTC [diff]


--
CategoryHomeAutomation
CategoryHomeAssistant
CategoryTasmota
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki