Re: [mh] MH & HA - Integration? Migration?

Dave Neudoerffer <[email protected]> Mon, 25 Mar 2024 10:33:44 -0400
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <CAOFx8LOg1rkxqt6E2qc7fMWue23LdBoG885-jaP8ktSqkM6wtg@mail.gmail.com>
--===============1454221340525432806==
Content-Type: multipart/alternative; boundary="00000000000021a9c606147d1003"

--00000000000021a9c606147d1003
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I have worked on this quite a bit over the past several months.  I have 3
separate HA/MH installations.  I have been using MH for many years, but my
son convinced me to add HA into the mix, for exactly the reasons you
state.

As I did a lot of the work on MQTT for MH, I started with an MQTT
solution.  However, HA does not publish discovery nor support commands on
its entities via MQTT.  So I used the REST API to get a round trip  --
commands and some discovery via the REST API, state change via MQTT.  This
was pretty clumsy still.  So I have more recently implemented a fairly
simple HA_Item.pm module that uses the HA Websocket API -- the websocket
API hooks right into the event bus in HA, so you get everything.  I was
giving it some time to settle, and wasn't sure whether anyone else would be
interested, but I am happy to share the module.  Or I could put together an
MH push, but that would take me a day or two.

Dave

On Mon, Mar 25, 2024 at 9:46=E2=80=AFAM H Plato <[email protected]> wrote:

> Hello,
>
>   Is anyone using Home Assistant (HA)? I=E2=80=99ve recently picked up a =
new new
> devices, and it is impressive the amount of device support available in H=
A.
> I=E2=80=99d rather spend my time setting up automations than developing d=
evice
> modules. So I=E2=80=99m thinking about running them in parallel, as my MH=
 instance
> has lots of logic that I don=E2=80=99t know how to replicate in HA, as we=
ll as
> speech for home events, watering moisture calculations, etc=E2=80=A6 HA w=
ould be a
> contained VM that would hold the devices and maybe the user interface. I
> mainly use the floorplan IA7 interface, and I haven=E2=80=99t seen that i=
n HA yet.
>
>   Both MH and HA use MQTT, so that could be a communication option, or
> using web calls. I also have some older tech that still works fine (weede=
r
> and W800), which I=E2=80=99ll have to figure out. My hardware is also old=
, so I=E2=80=99m
> seeing this as an opportunity to architect a bit more of a better solutio=
n,
> by virtualizing everything.
>
>   Anyone gone down any of these paths?
>
> ________________________________________________________
> To unsubscribe from this list, go to:
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>

--00000000000021a9c606147d1003
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I have worked on this quite a bit over the past several mo=
nths.=C2=A0 I have 3 separate HA/MH installations.=C2=A0 I have been using =
MH for many years, but my son convinced me to add HA into the mix, for exac=
tly the reasons you state.=C2=A0=C2=A0<div><br></div><div>As I did a lot of=
 the work on MQTT for MH, I=C2=A0started with an MQTT solution.=C2=A0 Howev=
er, HA does not publish discovery nor support commands on its entities via =
MQTT.=C2=A0 So I used the REST API to get a round trip=C2=A0 -- commands an=
d some discovery via the REST API, state change via MQTT.=C2=A0 This was pr=
etty clumsy still.=C2=A0 So I have more recently implemented a fairly simpl=
e HA_Item.pm module that uses the HA Websocket API -- the websocket API hoo=
ks right into the event bus in HA, so you get everything.=C2=A0 I was givin=
g it some time to settle, and wasn&#39;t sure whether anyone else would be =
interested, but I am happy to share the module.=C2=A0 Or I could put togeth=
er an MH push, but that would take me a day or two.</div><div><br></div><di=
v>Dave</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"=
gmail_attr">On Mon, Mar 25, 2024 at 9:46=E2=80=AFAM H Plato &lt;<a href=3D"=
mailto:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
=C2=A0 Is anyone using Home Assistant (HA)? I=E2=80=99ve recently picked up=
 a new new devices, and it is impressive the amount of device support avail=
able in HA. I=E2=80=99d rather spend my time setting up automations than de=
veloping device modules. So I=E2=80=99m thinking about running them in para=
llel, as my MH instance has lots of logic that I don=E2=80=99t know how to =
replicate in HA, as well as speech for home events, watering moisture calcu=
lations, etc=E2=80=A6 HA would be a contained VM that would hold the device=
s and maybe the user interface. I mainly use the floorplan IA7 interface, a=
nd I haven=E2=80=99t seen that in HA yet.<br>
<br>
=C2=A0 Both MH and HA use MQTT, so that could be a communication option, or=
 using web calls. I also have some older tech that still works fine (weeder=
 and W800), which I=E2=80=99ll have to figure out. My hardware is also old,=
 so I=E2=80=99m seeing this as an opportunity to architect a bit more of a =
better solution, by virtualizing everything. <br>
<br>
=C2=A0 Anyone gone down any of these paths?<br>
<br>
________________________________________________________<br>
To unsubscribe from this list, go to: <a href=3D"https://lists.sourceforge.=
net/lists/listinfo/misterhouse-users" rel=3D"noreferrer" target=3D"_blank">=
https://lists.sourceforge.net/lists/listinfo/misterhouse-users</a><br>
<br>
</blockquote></div>

--00000000000021a9c606147d1003--


--===============1454221340525432806==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1454221340525432806==
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


--===============1454221340525432806==--