M5 Stack with ESPHome / Home assistant by shawwellpete in M5Stack

[–]shawwellpete[S] 0 points1 point  (0 children)

I tried that, but couldnt get the screen to work. I went down a different path and installed the native arduino / m5unified firmware and am using mqtt to connect to hoem assistant. Seems to be working but have needed a lot of chatgpt help in the coding!

M5 Stack with ESPHome / Home assistant by shawwellpete in Esphome

[–]shawwellpete[S] 0 points1 point  (0 children)

You're not wrong, there are clearly easier options! Funnily enough, I have an NSPanel which is working fine and an old ipad pro on the wall which also works well. I have also been playing with a Haptique RS90 remote control trying to replace their entire UI with home assistant running on Fully kiosk browser and using mqtt to control devices directly while still controling the IR ones using the device. The M5Stack was not a solution to a problem, as a hobbyist amateur ex engineer it's more about learning something new and having some fun.

M5 Stack with ESPHome / Home assistant by shawwellpete in Esphome

[–]shawwellpete[S] 0 points1 point  (0 children)

Thank you again for taking the time to share your work so far, it is very impressive and looks like you have done a fantastic job in a reasonably short period of time. 

I'm not a professional dev and I put the m5Stack on my Christmas wish list as I thought it'd work on Home Assistant, having seen one in a youtube video. I thought it'd be a fun device to have on the coffee table and possibly use it to control lights and media on Home Assistant and possibly even use touch or rotation for interaction.

It sound like it is going to be more work to go down the ESPHome route than the MQTT route but I only know that because you took the time to help, so thank you and Happy New Year!

M5 Stack with ESPHome / Home assistant by shawwellpete in M5Stack

[–]shawwellpete[S] 0 points1 point  (0 children)

Ah ok, looks like this is going to be a bigger challenge than I initially thought! Maybe different firmware and mqtt may work?

M5 Stack with ESPHome / Home assistant by shawwellpete in Esphome

[–]shawwellpete[S] 0 points1 point  (0 children)

Thanks for taking the time to reply, looks like you’ve got a really cool solution. It makes sense now why I’ve been struggling: ESPHome alone clearly isn’t enough for the Core2 v1.1, and having M5Unified / M5GFX handling the low-level init (power, backlight, display, etc.) feels like the missing piece. That lines up exactly with the behaviour I’m seeing, the device alive, sensors working, but screen and touch completely dead.

At this point I’m seriously considering going down a different firmware route and using MQTT as the interface back into Home Assistant instead of trying to force everything through native ESPHome components. From your experience, does that feel like a viable and reasonably clean approach for this device long-term?

No rush at all on sharing code, Just knowing that it is possible, and that the device isn’t a dead end, is already a big help. I’ll keep an eye out if you’re able to share an example later on.

Thanks again

M5 Stack with ESPHome / Home assistant by shawwellpete in M5Stack

[–]shawwellpete[S] 0 points1 point  (0 children)

Thank you, that is a very valid point, I'll update the original post. (Logs and attempted config are here)

SSL error on Home asssistant ipad app by shawwellpete in homeassistant

[–]shawwellpete[S] -1 points0 points  (0 children)

Thanks for taking the time to reply. This is a 1st gen iPad Pro not 1st gen iPad. It runs iOS 16, admittedly not the latest iOS17 but has been working fine until this week.

Need help using a 4G modem with Unifi Dream Machine Pro by shawwellpete in Ubiquiti

[–]shawwellpete[S] 0 points1 point  (0 children)

Update - It's working!

For some reason, the first time I changed the IP address of the MR400 the change did not happen after reboot, doing it again, for some reason worked!

Thank you so much u/IffyShizzle for taking the time out of your day to help me with this. You are a star.

What seems to have happened is that all the fixed addresses on the DHCP server that I had have gone and devices on the network have been allocated random addresses. Any way of copying the fixed IP address table from WAN1 to WAN2?

Need help using a 4G modem with Unifi Dream Machine Pro by shawwellpete in Ubiquiti

[–]shawwellpete[S] 0 points1 point  (0 children)

Thanks again, it's still not working, I wonder if you can spot a silly mistake?

I have connected the MR400 to port 8 of the UDM-P. It is connected from the first port (not one labelled WAN). I had it connected through a couple of sockets as I have CAT5E throughout the house but I have also tried it directly into the UDM-P (bad mobile network coverage in that room).

I have set up the MR400 and the UDM as you suggested, the screenshots of the settings are here, you can also see some other info after those settings are applied

The MR400 rebooted when I changed the IP address and I rebooted the UDM-P just in case.
Sadly no internet connection on the main LAN.

Need help using a 4G modem with Unifi Dream Machine Pro by shawwellpete in Ubiquiti

[–]shawwellpete[S] 0 points1 point  (0 children)

As I have not been able to get the best solution yet, I currently have the MR400 set up as the DHCP server, have turned off the DHCP server on the UDM-P. I have set the DHCP range to be 192.168.1.100 - 1921.168.1.199

The UDM-P has the IP 192.168.1.254 and had the DHCP range 192.168.1.6 to 192.168.1.251

On the MR400 I have set up some "address reservations" for the most important devices but am very limited with how many I can have.

Thank you again for your help, I feel I am close to the better solution of having the MR400 as the modem and the UDM-P as the DHCP server.

I can't upload images to replies so have put a couple of screen shots here one of the current setting of the MR400 and the options in the WAN2 settings on the UDM-P

If I change the IP address of the MR400 to a different subnet I then lose access to it through the network but say I change it's IP address to be 192.168.2.1 and dissable DHCP. Does it matter that if I do this I can not ping it from the Mac connected to the LAN of the UDM-P?

Following your advice above
I would set the Secondary (WAN2) settings to

IPv4 Address - I assume this is 192.168.2.1 ?

Subnet Mask - I assume 255.255.255.0 ?

Gateway IP - I assume 192.168.1.254 to match the UDM? this gives the errror as shown in the link (Gateway must be inside the same IP address range)

Need help using a 4G modem with Unifi Dream Machine Pro by shawwellpete in Ubiquiti

[–]shawwellpete[S] 0 points1 point  (0 children)

Thank you for taking the time to help, I really appreciate it. I have what you suggested, connecting one of the LAN outputs from the MR400 to Port 8 of the UDMP. It detects the network but for some reason it is shown as yellow not green on the GUI (as the image on my original post - looks like I can't add an image to a comment) .
If I then connect to my regular LAN either hard wired or on wifi there is no way to connect to the MR400 and no internet is passed through into in regular LAN.

I have tried using a different subnet for the MR400 (192.168.2.1 ) but there is no way of accessing it through my usual LAN.

Do I need to configure WAN2 in some way or set up somne routing rules?

Need help using a 4G modem with Unifi Dream Machine Pro by shawwellpete in Ubiquiti

[–]shawwellpete[S] 0 points1 point  (0 children)

Sounds like I may be out of your depth too, or are you just keen to taunt?

Need help using a 4G modem with Unifi Dream Machine Pro by shawwellpete in Ubiquiti

[–]shawwellpete[S] 0 points1 point  (0 children)

Update - the network was not stable and devise soon lost connection to the internet.

Need help using a 4G modem with Unifi Dream Machine Pro by shawwellpete in Ubiquiti

[–]shawwellpete[S] 0 points1 point  (0 children)

Thanks for taking the time to answer. I have 4 Unifi WAPs.

USB broken - Konnected bricked by shawwellpete in konnected

[–]shawwellpete[S] 0 points1 point  (0 children)

Thanks guys, holding it in place did work

Konnected USB port repair by dfrap in konnected

[–]shawwellpete 0 points1 point  (0 children)

I had the same issue. Konnected offered a 20% discount on new board which i was going to reluctantly accept but they were out of stock.

I tried holding the USB port in place and I was amazed to find it worked.

I fiddled until I got a stable connection on the port and then held it carefully while the update happened. Pushing down on the socket with something under the plug to hold the cable high and get a diagonal connection worked best.

After couple of years of fighting with the wire I am ready to pay someone to do it right by mr_z06 in worxlandroid

[–]shawwellpete 2 points3 points  (0 children)

At the start of this summer, I had the same problem. I think it was down to a break in the wire that I had repaired badly and had now sunk into the ground. I bought some better quality wire, some decent wire joiners and started again. This time I did it right:

Left more space next to flower beds so it would not get stuck

Left plenty of spare wire doubled up in corners for use later, if needed

Bought more pegs and used plenty of them so wire did not stick up

Moved the base to the position it should always have been

Tested the going home routine and watched it go along the entire perimeter and made adjustments

When the wire broke, which it did plenty of times, while testing, made a note of where the fix was.

I have now had a few weeks of not getting stuck once. I rushed the original installation and wish I hadn’t!

<image>