Shelly over 2 access points

Hi, I have 2 shelly´s inside a hole that only receive wifi over another shelly acting as an access point. That shelly is also connected over another shelly acting like an access point. I cannot add to HA this two shelly´s, due the ip is http://192.168.31.18:11780:12944

How can I add them to HA?