[mh] Alt Alexa Integration
Jon Boehm via misterhouse-users <[email protected]> Thu, 29 Jan 2026 10:12:53 -0800
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <CAL7eZUWiMtAG-8pSk0jvS0VQj6gvCQrtCO68omKdiZdT0uU_iA@mail.gmail.com> |
--===============3772995760939942025==
Content-Type: multipart/alternative; boundary="000000000000cfe37506498aceb6"
--000000000000cfe37506498aceb6
Content-Type: text/plain; charset="UTF-8"
Hi,
I have a rather stale server and MH install. I'm sure the reason I have
trouble with the internal MH Alexa integration is on my end. I wanted to
share this alternate approach as an option.
I asked Gemini for an alternative that didn't need the cloud. It
recommended Fauxmo. Fauxmo is a Python utility that emulates Belkin Wemo
devices. The overall setup was straight forward except the command
construction in the fauzmo_config.json. Specifically the state_cmd. This
is how Alexa querying the state. I have a bit of trouble so I decided I
would share that it might assist others. I won't give a full tutorial as
Gemini can build this for you but will provide an example json entry that
worked for me on my versions of stale software.
{
"port": 52001,
"name": "back porch",
"on_cmd": "/bin/bash -c \"curl -sG http://localhost/SET?BackPorchLight=on >
/dev/null 2>&1\"",
"off_cmd": "/bin/bash -c \"curl -sG
http://localhost/SET?BackPorchLight=off > /dev/null 2>&1\"",
"state_cmd": "/bin/bash -c \"curl -sG \\\"
http://localhost/SET;&html_item('BackPorchLight')\\\" | grep -q
'/graphics/on.jpg'\""
}
Hope that helps,
Jon
--000000000000cfe37506498aceb6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi,<div><br></div><div>I have a rather stale server and MH=
install.=C2=A0 I'm sure the reason I have trouble with the internal MH=
Alexa integration is on my end.=C2=A0 I wanted to share this alternate app=
roach as an option.=C2=A0=C2=A0</div><div><br></div><div>I asked Gemini for=
an alternative that didn't need the cloud.=C2=A0 It recommended Fauxmo=
.=C2=A0 =C2=A0Fauxmo is a Python utility that emulates Belkin Wemo devices.=
=C2=A0 The overall setup was straight forward except the command constructi=
on in the fauzmo_config.json. Specifically the state_cmd.=C2=A0 This is how=
Alexa querying=C2=A0the state.=C2=A0 I have a bit of trouble so I decided =
I would=C2=A0share that it might assist others.=C2=A0 I won't give a fu=
ll tutorial as Gemini can build this for you but will provide an example js=
on entry that worked for me on my versions of stale software.</div><div><br=
></div><div>=C2=A0{<br>=C2=A0 =C2=A0"port": 52001,<br>=C2=A0 =C2=
=A0"name": "back porch",<br>=C2=A0 =C2=A0"on_cmd&q=
uot;: "/bin/bash -c \"curl -sG=C2=A0<a href=3D"http://localhost/S=
ET?BackPorchLight=3Don" target=3D"_blank">http://localhost/SET?BackPorchLig=
ht=3Don</a>=C2=A0> /dev/null 2>&1\"",<br>=C2=A0 =C2=A0&=
quot;off_cmd": "/bin/bash -c \"curl -sG=C2=A0<a href=3D"http=
://localhost/SET?BackPorchLight=3Doff" target=3D"_blank">http://localhost/S=
ET?BackPorchLight=3Doff</a>=C2=A0> /dev/null 2>&1\"",<b=
r>=C2=A0 =C2=A0"state_cmd": "/bin/bash -c \"curl -sG \\=
\"<a href=3D"http://localhost/SET;&html_item('BackPorchLight&#=
39;)%5C%5C%5C" target=3D"_blank">http://localhost/SET;&html_item('B=
ackPorchLight')\\\</a>" | grep -q '/graphics/on.jpg'\"=
;"<br>=C2=A0}</div><div><br></div><div>Hope that helps,</div><div>Jon<=
/div></div>
--000000000000cfe37506498aceb6--
--===============3772995760939942025==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============3772995760939942025==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
--===============3772995760939942025==--