Revision [7199]

This is an old revision of TuyaLocalSettings made by ZorrUno on 2021-08-12 23:50:37.

 

Home Assistant Tuya Local Settings


Kogan Smart Plug, on 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


Valid XHTML :: Valid CSS: :: Powered by WikkaWiki