niceboygithub / aqarasmartswitchs1e Goto Github PK
View Code? Open in Web Editor NEWEverything about Aqara Smart Switch S1E
License: Apache License 2.0
Everything about Aqara Smart Switch S1E
License: Apache License 2.0
Custom firmware is flashed according to https://github.com/niceboygithub/AqaraSmartSwitchS1E/blob/master/homeassistant/telnet.md .
I want to update to a new custom firmware. How can I access the cli without doing that again?
Hello, developer.
On the S1E, I have set up the smart lights to be controlled in the form of "Aqara MARS-Tech -- pulse control".
this feature is not functioning properly on the devices controlled by this project. In the "Aqara gateway", it is working normally.
I kindly request that the project be adapted to support this "Aqara MARS-Tech" feature.
Thank you for your attention to this matter.
Line 53 in file ubus_monitor.sh
error "The mosquitto_sub or mosquitto_sub are not exist!"
please change to:
error "The mosquitto_sub or mosquitto_
pub are not exist!"
Same changes on line 87 at file res_monitor.sh
Line 61 at mqtt_sub.sh
Line 65 at install_1e2ha.sh
I have five S1E devices. Two of them have been successfully connected to MQTT and are functioning normally. However, two of the relay switches are showing an "unavailable" status, as shown in the picture. Additionally, one of the devices failed to be added properly.
Previously, all five switches had been connected to MQTT, and at that time, all the relay switches were displaying an "unavailable" status. Interestingly, two of the switches later unexpectedly returned to a normal state under unknown circumstances.
Maybe you can change the deployment process. For example, "tar.gz" can contain only binary files mqtt_pub and mqtt_sub, and all ".sh" scripts can be modified separately. This will help the community develop this project
It is observed that switches become unabliable in HA after S1E device booted. From HA, it is observed that the status
topic received NO message at all.
After further debugging, it seems that the device is producting different id
for switches, in detail:
1, 2, 3
is used for ubus -S call switch state
33, 34, 35
is used for ubus -S call switch get.config
I think the same hack should be made in set_status
function as the config_switch
one, where the id
for ubus -S call switch state
is used to as the unique id of switch.
现在支持2.0.8固件了吗,我看已经add S1E firmwares 2.0.8_0002,但是redeme里还写着不要升级
➜ ~ telnet 10.100.1.39
Connected to 10.100.1.39
Entering character mode
Escape character is '^]'.
Magic-Switch-S1E-EB0B login: root
~ # cd /tmp && wget -O /tmp/curl "http://master.dl.sourceforge.net/project/aqarahub/binutils/curl?viasf=1" && chmod a+x /tmp/curl
mp/curl -s -k -L -o /tmp/s1e_update.sh https://raw.githubusercontent.com/niceboygithub/AqaraSmartSwitchS1E/master/firmwares/modified/S1E/s1e_update.sh
chmod a+x /tmp/s1e_update.sh && /tmp/s1e_update.shConnecting to master.dl.sourceforge.net (216.105.38.12:80)
curl 100% |*************************************************************************************************************************************| 2247k 0:00:00 ETA
/tmp # /tmp/curl -s -k -L -o /tmp/s1e_update.sh https://raw.githubusercontent.com/niceboygithub/AqaraSmartSwitchS1E/master/firmwares/modified/S1E/s1e_update.sh
/tmp # chmod a+x /tmp/s1e_update.sh && /tmp/s1e_update.sh
psvr ok,wait=1
s1e_update.sh revision: 2
type: lumi.switch.acn032, model: AH_S1E
platform: aiot, path: /tmp/fw.tar.gz, sign: 0
Original OTA package : /tmp/fw.tar.gz
Unpack path : /data/ota_unpack
Firmware path : /data/ota_dir
OTA packages size(kb) : 17039
Available ROM size(kb): 39516
Available RAM size(kb): 8116
Update to 2.0.9_0006
Get packages, please wait...
Got packages done
Killed
/tmp #
HI. How can I switch to English and use themes in mihome state
My S1E has been automatically updated to a new version and cannot be added to the Home Kit. How to refresh the firmware?
另外通过 homekit 接入 ha,只显示了 3 个物理开关,没有显示虚拟按键怎么解决呀
Hi! Is it possible to change the language? From Chinese to English?
Please uncomment line 299 at ubus_monitor.sh.
Methood scservice_perform() work great with HomeAssistant MQTT.
For scene cotrol i create location for every switch, and create empty automations with action switch off all devices in this room.
After that in Aqara App i create screen with 9 buttons, and for every button set different automation.
In home assisatant i use trigger for MQTT
alias: S1E_1.Some_Action
description: ""
trigger:
- platform: mqtt
topic: homeassistant/binary_sensor/0x00xxxxxxxx/al_10523645/set
payload: "ON"
condition: []
action:
- device_id: xxxxxxxxxx
mode: single
does the custom firmware remove the need to keep these connected to the internet, or is it all local afterwards
Is there a way to update the firmware without losing telnet?
anyone can help?
A fatal error occurred: Failed to connect to Espressif device: Invalid head of packet (0xFF): Possible serial noise or corruption.
I am using mac by running this command :
python3 -m esptool --baud 115200 --port /dev/tty.xxxxx run
I got a S1E which version is 2.0.9 . Of course, it dont support telnet. So I try to interrupt the boot sequence by holding my "Enter"。But it seems not work. I have tryed a lot of times.
There is something different between your hardware and my S1E,I got a fudanmicro NAND Flash not 'foresee'.
Is it possible I soldered off this nand and programmed the flash directly. In that way , I need a complete firmware or something like that。contains APP and uboot .
I'm trying to open the Telnet port, but an error occurred, tell me what's wrong
#nand info
Device 0: nand0, sector size 128 KiB
Page size 2048 b
OOB size 64 b
Erase size 131072 b
SigmaStar # printenv bootargs
bootargs=root=/dev/mtdblock7 rootfstype=squashfs ro init=/linuxrc loglevel=3 LX_MEM=0x3FE0000 mma_heap=mma_heap_name0,miu=0,sz=0x2B0000 cma=2M highres=on mmap_reserved=fb,miu=0,sz=0x2d0000,max_start_off=0x3300000,max_end_off=0x3600000 mtdparts=nand0:1664k@0x140000(BOOT0),1664k(BOOT1),256k(ENV),256k(ENV1),128k(KEY_CUST),3m(KERNEL),3m(KERNEL_BAK),20m(rootfs),20m(rootfs_bak),1m(factory),1m(MISC),10m(RES),10m(RES_BAK),-(UBI)
SigmaStar #
SigmaStar # setenv bootargs=root=/dev/mtdblock7 rootfstype=squashfs ro init=/bin/sh loglevel=3 LX_MEM=0x3FE0000 mma_heap=mma_heap_name0,miu=0,sz=0x2B0000 cma=2M highres=on mmap_reserved=fb,miu=0,sz=0x2d0000,max_start_off=0x3300000,max_end_off=0x3600000 mtdparts=nand0:1664k@0x140000(BOOT0),1664k(BOOT1),256k(ENV),256k(ENV1),128k(KEY_CUST),3m(KERNEL),3m(KERNEL_BAK),20m(rootfs),20m(rootfs_bak),1m(factory),1m(MISC),10m(RES),10m(RES_BAK),-(UBI)
## Error: illegal character '='in variable name "bootargs=root=/dev/mtdblock7"
SigmaStar #
is there any way to flash it with mac OS?
I do not have any windows OS so do not have putty
what is the login and password?
Hello niceboy.
As your guide i did connected and estabilish uart communication and already mentioned methood with ENTER pressing to interupt boot is not work.
So far there are some methood to interupt by short CS pin with GND.
Could you kindly help us with guide to do that, the best with picture. Your help is very appreciated.
-TT-
Hi, thanks for this good repo!
Unfortunately, I’ve updated my S1E to 2.6.0 version before I found this repo and I can’t get a telnet access to the panel now.
I’ve followed the instruction in telnet.md document and removed the password successfully, next step is flash modified firmware into S1E, but my S1E can’t establish WiFi connection in this state so I can’t run command to download shell scripts and performing a firmware modify.
So now I would like to know is there any way to flash the modified firmware to S1E? Is it possible to do this with UART?
Thanks!
send a MQTT: Publish to the S1E telneted,
topic: "homeassistant/select/0x0054ef4441dfa8/theme/settheme"
payload: "http://homeassistant.local:8123/local/theme_6_9.zip"
qos: 0
retain: false
the theme wont change, please help
大佬,你好!
S1E的主题可以直接进入ftp替换相关文件来更改,但是使用mqtt命令无法进行更改,不知道是为什么
已经将zip包放入/config/www/目录下,http://homeassistant.local:8123/local/theme_6_9.zip链接可以在浏览器直接下载
call service后没有任何变化
I have used the latest custom firmware(2.2.0_0000)
but I can't add a device using the apple home app,any one kown how to fix it?
ro.sys.name=Magic-Switch-S1E
ro.sys.model=lumi.switch.acn032
ro.sys.product=CJPKG01LM
ro.sys.spu=AG033
ro.sys.sku=AG026CNB01
ro.sys.ean13=6970504215962
ro.sys.manufacturer=Aqara
ro.sys.vendor=Lumi United Technology Co., Ltd.
ro.sys.fw_ver=2.2.0
ro.sys.build_num=0000
ro.sys.mi_fw_ver=1.0.3
ro.sys.mi_build_num=0000
ro.sys.hw_ver=1.0
ro.sys.acc_tags=red
i use Hard way on https://github.com/niceboygithub/AqaraSmartSwitchS1E/blob/master/homeassistant/telnet.md but also need to login ?
what's your email's content ? is it in chinese and mail to [email protected] ? can you share it ? thanks a lot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.