Last active
June 17, 2019 07:00
-
-
Save urish/1650af29df6faea2e82fb5baa15b668c to your computer and use it in GitHub Desktop.
Yowsit Smart Plug configuration for Home Assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would this work with a switch as well? Also, what is the procedure from a bluetooth perspective? Needs pairing ?