OK so I found out the ethernet only worked if the POE was mid-span so I fixed that issue up.
How can I disable Wifi so it will only use ethernet? If I go into the settings I can’t clear the existing network, adding blank (or fake) details doesn’t clear it either. I Also tried restoring settings to default (although most setting were still retained)
Would I need to do a fresh install or is there another option?
Update on the Ethernet - seems if I block the wifi (for pi device) from the access point I can get it working with Ethernet. (Not sure if that is the best approach, I can see myself forgetting this in months/years to come and pulling my hair out trying to troubleshoot!)
Otherwise, i’m not really sure if its using ethernet or wifi - it shows its connected to both and is using data on both via my unifi AP admin area
I think its possible that the latest Android Things can use both WiFi and Ethernet. The only way to avoid WiFi being used is to not enter the credentials during setup. Not sure why they are not getting reset, but I guess you could enter the wrong information as well.
@thanksmister I have 2 android tablets in two different rooms in the same house running this Alarm Control panel app. I really like the app interface and when it works, it works well.
Lately though, I’ve been struggling with repeated connections and disconnections from my Mosquitto MQTT server running under HASSIO. Both tablets connect and disconnect from the server about once every second.
The logs for the Mosquitto add-on in HASSIO look like this:
[INFO] found *hass username1* on Home Assistant
1549834859: Client *unique client ID1* disconnected.
1549834859: New client connected from 192.168.0.112 as *unique client ID1* (c0, k60, u'*hass username1*').
[INFO] found *hass username1* on Home Assistant
1549834860: Client *unique client ID2* disconnected.
1549834860: New client connected from 192.168.0.112 as *unique client ID2* (c0, k60, u'*hass username1*').
[INFO] found *hass username1* on Home Assistant
1549834861: Client *unique client ID3* disconnected.
1549834861: New client connected from 192.168.0.112 as *unique client ID3* (c0, k60, u'*hass username1*').
[INFO] found *hass username2* on Home Assistant
1549834862: Client *unique client ID4* disconnected.
1549834862: New client connected from 192.168.0.115 as *unique client ID4* (c0, k60, u'*hass username2*').
[INFO] found *hass username2* on Home Assistant
1549834864: Client *unique client ID5* disconnected.
1549834864: New client connected from 192.168.0.115 as *unique client ID5* (c0, k60, u'*hass username2*').
[INFO] found *hass username2* on Home Assistant
1549834866: Client *unique client ID6* disconnected.
1549834866: New client connected from 192.168.0.115 as *unique client ID6* (c0, k60, u'*hass username2*').
[INFO] found *hass username2* on Home Assistant
Note that I redacted the Home Assistant usernames and MQTT client IDs. I can’t seem to find out why the app running on the two tablets connects and disconnects constantly, but it seems to overload the MQTT server to the point where it cannot process anything else.
Note that the two tablets each use unique HA credentials, each has a unique client ID setup in the app, along with a unique panel name in the app.
Does anyone have any idea what might be causing this? Thanks. If it’s better to open up an issue on Github, I can do that.
You are getting disconnected from your MQTT client for some reason, the application will try to reconnect on its own. The logs are valid, but you need to figure out why your MQTT is dropping the connection or possibly the WiFi connection is being reset on the device.
I’m having trouble connecting to MQTT. I get an error on the Alarm Panel screen “There was an error initializing the MQTT client. Please check your settings.”
I recently had some MQTT issues but got them all sorted out. My issues were due to some updates with Mosquitto MQTT. (thread on the issue). I have MQTT working again and all my MQTT devices work, except my alarm panel.
I am confident that my settings are correct on the alarm panel. I am using “http://192.168.1.111” for my MQTT broker address. This is my HASSIO server with an embedded broker. I’m using the same username and password that I use on all my MQTT devices and that I set up for Mosquitto MQTT to use.
Here are my Mosquitto MQTT logs. My wall tablet’s IP is 192.168.1.148. My MQTT username is HASSIO.
1553657331: New connection from 192.168.1.148 on port 1883.
1553657331: |-- mosquitto_auth_unpwd_check(HASSIO)
1553657331: |-- ** checking backend http
1553657331: |-- url=http://127.0.0.1:8080/login
1553657331: |-- data=username=HASSIO&password=REDACTED&topic=&acc=-1&clientid= |[INFO] found HASSIO on Home Assistant
1553657333: |-- getuser(HASSIO) AUTHENTICATED=1 by http
1553657333: Socket error on client mywallpanel, disconnecting.
1553657333: New client connected from 192.168.1.148 as mywallpanel (c0, k60, u'HASSIO').
1553657333: Socket error on client <unknown>, disconnecting.
HASSIO v 0.89.0
Mosquitto MQTT v 4.1
Most recent Alarm Panel version
I’ve been having this exact issue the last month or so, it’s happened perhaps 3 times. First I notice that all my MQTT devices are showing as unavailable in hassio, and before I traced it back to the alarm control panel app the first time it actually started rebooting my tasmota devices over and over. It seems like a flood of mqtt messages that cause unusual behavior? The solution each time has been to close the app, restart mosquito on hassio, and relaunch the app a few hours later. It’s happened on the last few versions of hassio (including latest 90.1) and with mosquito add on v 4.0
I am on an older version of HA (v.82?) and I am not having issues with disconnecting my MQTT devices including Alarm Panel. I am reluctant to upgrade HA as I just think they are not spending enough time on stability rather than new features. I can’t reproduce the issue but I have put out a new version on slow rollout which I’ve tried to address past connection issues. Feel free to download the latest version from Github if you are not one of the users in the slow rollout on Google Play. However, I can’t guarantee this will fix your issues especially if it’s with a new version of MQTT and HA.
I use the built-in MQTT from HA. I have updated my HA to v0.90.2 and testing the MQTT broker with the Alarm Panel, so far everything works as it should. Yeah, I decided to push more towards MQTT and hopefully will add a feature that sends a URL for the new stream video, so if there is an event on one of my cameras it pops ups a little preview. Just a thought…
I did not redact my clientID when I posted the logs. I do have a username and password set in Mosquitto MQTT and I’m using that username and password in the alarm panel MQTT settings.
I recently had issues with MQTT so I completely removed and reinstalled it. Could there be some kind of lingering setting that isn’t allowing the alarm panel to connect? I’m also using the same username and password for all my MQTT devices, is that an issue?
Sounds like your doing everything right and I’m puzzled as to why you are losing connection. Try installing the new version from Google Play or Github.
I got it to work, but have no idea how. I uninstalled the app, rebooted the tablet, rebooted HA, reinstalled the app from Play Store, re-entered the settings and it worked. I had tried that at least twice before. Not sure why it worked this time, but I’m not complaining.
Nott sure, could be a network issue with your tablet or it could be the new version I rolled out today. Thiough I hadn’t had any issues reported like your issue for the old version. I’m glad either way.
Hello! First of all, I really appreciate this app, I’m enjoying it very much.
I’ve read the entire thread and I can’t find my issue, so here it goes:
When trying to configure HA ip (in my case http://192.168.0.2:8123) the browser gets stucked in the HA icon and shows “initializing” along with a white screen. When I hit the refresh it shows briefly the blue strip in the top of the screen and then goes back to initializing…
I’m trying this from my elephone p9000 Android phone, connected to my local wifi.
Am I missing something very basic here? I might be doing something wrong in the user setting in the Hass setting perhaps?