YuXilong / AqaraSmartSwitchS1E

Everything about Aqara Smart Switch S1E

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resources for Aqara Smart Switch S1E

official

This folder will offer the things from Aqara inlcuding themes.

images

Some pictures related to Aqara Smart Swich S1E, like the UART (tx, rx, gnd) and 5V

scripts

Some scripts help you to speed up some works.

For example, pic_resizer.py can help to resize and convert the pictures which are using in theme. More detail to use pic_resizer.py etc., please see the readme.

homeassistant

Important: CAUTION ⚠️

⚠️ Lumi has removed the telnetd and post_init.sh check after the version 2.0.5_1044. So to enable S1E2HA, you need to flash customized firmware to enable telnet and post_init.sh. Please do not upgrade to 2.0.5_1044 and 2.0.6_xxxx after. ⚠️

The custom_component of S1E to integrate to Home Assistant.

The Aqara Smart Switch S1E supports HomeKit, so you can use HomeKit integration of HA to connect S1E to HA. Use HomeKit to integrat to HA, there are three switchs and six wireless buttons you can control and use them in HA.

Here is another solution which is using MQTT to integrate to HA and provides more informations and features to use S1E.

controls sensors diagnostic

To use the integration, you need to enable telnet and login to telnet to install this integraton. After enabled telent, please make sure that you had MQTT broker running then following the intrustions.

wget -O /tmp/curl "http://master.dl.sourceforge.net/project/aqarahub/binutils/curl?viasf=1"; chmod +x /tmp/curl
/tmp/curl -s -k -L -o /tmp/install_s1e2ha.sh https://raw.githubusercontent.com/niceboygithub/AqaraSmartSwitchS1E/master/homeassistant/install_s1e2ha.sh; chmod a+x /tmp/install_s1e2ha.sh
/tmp/install_s1e2ha.sh

Then enter the ip, port, username and password of your MQTT broker. Installation

Then, enjoy!

Theme

You can use settheme to download theme from your HA to your S1E.

  1. Put the themefile.zip to /config/www/ of HA.
  2. Find the topic of settheme, go to MQTT_INFO, search "theme/config", there is a "send_command_topic".
  3. Go to services page in the developer tools page, find mqtt publish
  4. Set the topic to "homeassistant/select/0x0054XXXXXXXXXX/theme/settheme" and the Payload is the url, like "http://homeassistant.local:8123/local/theme7_6.zip".
  5. Press CALL SERVICE button

To create your own theme, you can replace any pictures in the theme with png file. Please the see directory tree of theme first. Also you can use "pic_resizer.py" to help you resize and convert the pictures.

controls

About

Everything about Aqara Smart Switch S1E

License:Apache License 2.0


Languages

Language:Shell 93.7%Language:Python 6.3%