Giter VIP home page Giter VIP logo

aqarasmartswitchs1e's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aqarasmartswitchs1e's Issues

Error message in check_mqtt method

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

Custom firmware question

does the custom firmware remove the need to keep these connected to the internet, or is it all local afterwards

HA+MIHome

HI. How can I switch to English and use themes in mihome state

Bootloader interupt

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-

Error: illegal character '='in variable name "bootargs=root=/dev/mtdblock7"

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 #

Update firmware

Is there a way to update the firmware without losing telnet?

User scene

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

Update to 2.0.9_0006 doesn't work

➜  ~ 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 # 

Reset Firmware issue

My S1E has been automatically updated to a new version and cannot be added to the Home Kit. How to refresh the firmware?

root password lost after reboot S1E switch

Dear author,

At firmweare 2.2, after instruction of enabling telnet, everything works well, but root password.
By running "passwd root", it give response as below:
image
After rebooting, root password become empty again.

Thanks

Cant interrupt the boot sequence

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 .
微信图片_20231219141117

Changing Language

Hi! Is it possible to change the language? From Chinese to English?

Theme service didn't work

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后没有任何变化

Any way to flash modified firmware via UART?

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!

Deployment process

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.