Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch is not available #28

Open
maodun96 opened this issue May 16, 2024 · 5 comments
Open

Switch is not available #28

maodun96 opened this issue May 16, 2024 · 5 comments

Comments

@maodun96
Copy link

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.

image

@niceboygithub
Copy link
Owner

What are the versions of S1E and S1E2HA?

@maodun96
Copy link
Author

What are the versions of S1E and S1E2HA?

Both S1E and S1E2HA are updated to the latest according to the project. These are all recent operations.
If you're referring to versions with multiple iterations of hardware, I'm not sure. I bought it in August 2023.

@maodun96
Copy link
Author

hello ,@niceboygithub

Through the 'top' command in telnet, I have found that the two processes:
ha_driven -O1 -L7
ha_driven -O 1 -L 7 -p /tmp/automatic.pid

are consistently consuming a total of 20% of the memory when using the problematic switches. The switches that are working normally do not exhibit similar memory usage.

@maodun96
Copy link
Author

I recall that I used the ”gw_global_tool.ttl“ to remove the password and flash the firmware. I did not go through the interrupt uboot process. Will this have any impact?

@maodun96
Copy link
Author

maodun96 commented Jun 1, 2024

hi, @niceboygithub

This is the state after running the top command.

Mem: 41512K used, 15348K free, 0K shrd, 857416K buff, 857464K cached
CPU: 0.0% usr 4.5% sys 0.0% nic 95.4% idle 0.0% io 0.0% irq 0.0% sirq
Load average: 6.04 6.06 6.00 1/110 3042
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
814 1 root S 13740 24.1 1 4.5 /bin/aqgui -F /res -l d
802 1 root S 11396 20.0 0 0.0 ha_master -H -S -a /lib/libha_auto.so
799 1 root S 5680 9.9 0 0.0 ha_lanbox
3202 1 root S 5452 9.5 1 0.0 wpa_supplicant -D nl80211 -i wlan0 -c /tmp/wpa_supplicant.conf -B -W
956 846 root S 4800 8.4 1 0.0 ha_driven -O 1 -L 7 -p /tmp/automatic.pid
798 1 root S 4184 7.3 0 0.0 ha_basis
796 1 root S 3852 6.7 1 0.0 ha_agent -D
756 1 root S 3088 5.4 1 0.0 /bin/sysservice -l d
958 846 root S 2576 4.5 1 0.0 {res_monitor.sh} /bin/sh /data/bin/res_monitor.sh
846 1 root S 2576 4.5 1 0.0 {res_monitor.sh} /bin/sh /data/bin/res_monitor.sh
758 1 root S 2568 4.5 1 0.0 telnetd
1 0 root S 2452 4.3 1 0.0 {linuxrc} init
2961 1 root S 2452 4.3 1 0.0 -/bin/login
3148 846 root S 2448 4.3 0 0.0 {app_monitor.sh} /bin/sh /tmp/app_monitor.sh
815 1 root S 2448 4.3 0 0.0 {gui_monitor.sh} /bin/sh /bin/gui_monitor.sh
805 1 root S 2448 4.3 1 0.0 {Aries.sh} /bin/sh /bin/Aries.sh
1199 845 root S 2448 4.3 1 0.0 {ubus_monitor.sh} /bin/sh /data/bin/ubus_monitor.sh
1146 844 root S 2448 4.3 0 0.0 {mqtt_sub.sh} /bin/sh /data/bin/mqtt_sub.sh
957 846 root S 2448 4.3 1 0.0 awk /method|sendHeartbeat {print $7 $8}
1197 845 root S 2448 4.3 1 0.0 awk {$1=$2=$3=$4=" ; print $0}
844 1 root S 2448 4.3 0 0.0 {mqtt_sub.sh} /bin/sh /data/bin/mqtt_sub.sh
845 1 root S 2448 4.3 1 0.0 {ubus_monitor.sh} /bin/sh /data/bin/ubus_monitor.sh
3042 3024 root R 2448 4.3 1 0.0 top
3024 758 root S 2448 4.3 1 0.0 -sh
3243 1 root S 2448 4.3 1 0.0 udhcpc -i wlan0 -s /etc/udhcp/simple.script -x hostname Magic-Switch-S1E-4E00 -t 10
3026 815 root S 2316 4.0 0 0.0 sleep 5
3028 3148 root S 2316 4.0 0 0.0 sleep 5
3041 805 root S 2316 4.0 1 0.0 sleep 10
792 1 root S 2296 4.0 1 0.0 mdnsd
739 1 root S 2236 3.9 0 0.0 /bin/fwfs --block_size=131072 --subblock_size=32768 --block_cycles=500 --read_size=2048 --prog_size=2048 --cache_size=32768 --file_cache_size=32768 --cache_pool_size=2 --block_count=8 --lookahead_size=8 /dev/mtd10 /misc
744 1 root S 1784 3.1 1 0.0 ubusd
1196 845 root S 1752 3.0 1 0.0 ubus -v monitor
1145 844 root S 1592 2.8 0 0.0 /bin/mosquitto_sub -h 192.168.10.132 -u mqtt -P 123456 -p 1883 -v -t homeassistant/+/0x0054ef44534e00/# -t homeassistant/status
749 1 root S 1456 2.5 1 0.0 property_service -i /etc/build.prop -p /data/storage/prop.dat -b
740 1 root S 1376 2.4 0 0.0 watchdog_30S
564 2 root SW 0 0.0 1 0.0 [kworker/1:1]
617 2 root SW 0 0.0 1 0.0 [ksdioirqd/mmc0]
255 2 root SW 0 0.0 0 0.0 [kworker/0:1]
1111 2 root DW 0 0.0 0 0.0 [disp0_P0_MAIN]
1114 2 root DW 0 0.0 0 0.0 [MI_FB_SYNC_DISP]
670 2 root SW 0 0.0 0 0.0 [bl_wdog/mmc0:00]
657 2 root DWN 0 0.0 1 0.0 [mi_log]
3014 2 root SW 0 0.0 0 0.0 [kworker/0:0]
7 2 root SW 0 0.0 0 0.0 [rcu_preempt]
1934 2 root SW< 0 0.0 0 0.0 [kworker/u5:1]
22 2 root SW 0 0.0 1 0.0 [kworker/u4:1]
3227 2 root SW< 0 0.0 1 0.0 [kworker/u5:0]
3 2 root SW 0 0.0 0 0.0 [ksoftirqd/0]
16 2 root SW 0 0.0 1 0.0 [migration/1]
2556 2 root SW< 0 0.0 1 0.0 [kworker/u5:2]
17 2 root SW 0 0.0 1 0.0 [ksoftirqd/1]
10 2 root SW 0 0.0 0 0.0 [migration/0]
491 2 root SW 0 0.0 1 0.0 [monitor_temp]
354 2 root SW 0 0.0 0 0.0 [kswapd0]
214 2 root SW 0 0.0 1 0.0 [kcompactd0]
731 2 root SW 0 0.0 1 0.0 [ubi_bgt1d]
1959 2 root SW 0 0.0 1 0.0 [kworker/u4:2]
12 2 root SW 0 0.0 0 0.0 [watchdog/0]
20 2 root SW 0 0.0 1 0.0 [kdevtmpfs]
622 2 root DW 0 0.0 1 0.0 [IspDriverThread]
626 2 root DW 0 0.0 0 0.0 [IspMidThreadWq]
654 2 root SW 0 0.0 0 0.0 [mi_wq]
2 0 root SW 0 0.0 0 0.0 [kthreadd]
5 2 root SW< 0 0.0 0 0.0 [kworker/0:0H]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants