Skip to content

Instantly share code, notes, and snippets.

@urish
Last active June 17, 2019 07:00
Show Gist options
  • Save urish/1650af29df6faea2e82fb5baa15b668c to your computer and use it in GitHub Desktop.
Save urish/1650af29df6faea2e82fb5baa15b668c to your computer and use it in GitHub Desktop.
Yowsit Smart Plug configuration for Home Assistant
# Yowsit Smart Bluetooth Plug configuration for home-assistant
#
# https://www.yoswit.com/products/smart-home-accessories/smart-plug.html
# https://www.home-assistant.io/
switch:
- platform: command_line
switches:
living_room_lamp:
command_on: gatttool -b 20:91:48:5B:16:9D --char-write-req -a 0x0e -n 02
command_off: gatttool -b 20:91:48:5B:16:9D --char-write-req -a 0x0e -n 00
command_state: gatttool -b 20:91:48:5B:16:9D --char-read -a 0x11
value_template: '{{ value == "Characteristic value/descriptor: e3" }}'
friendly_name: Living Room Lamp
@daniellandau
Copy link

Thanks!

@ispiropoulos
Copy link

Would this work with a switch as well? Also, what is the procedure from a bluetooth perspective? Needs pairing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment