Re: [mh] MH & HA - Integration? Migration?
Dave Neudoerffer <[email protected]> Mon, 25 Mar 2024 11:19:06 -0400
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <CAOFx8LNRsfHnNgOqE=5M5dJOU0AJHiPLpqkFP45sj1bBKCYFbg@mail.gmail.com> |
--===============4998524194902792193== Content-Type: multipart/alternative; boundary="00000000000071d2a306147db2fe" --00000000000071d2a306147db2fe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have tried yaml, nodered and app daemon (python code) for automations in HA. But I am old, and have worked on my perl code in MH for a lot of years. Now all that code still works great even with the devices in HA. My son ended up doing his HA automations using the websocket API from a program he wrote in RUST (after also trying most of the HA automation options). I am just fine doing them in perl, and MH seems like a reasonable place to host them. On Mon, Mar 25, 2024, 11:05=E2=80=AFAM Dean Junk <[email protected]> wrote: > I used MH for about 15 years and built a lot of code specific for my > needs. My biggest recommendation is to skip putting automations in the ya= ml > files. Use node red, it=E2=80=99s by far the easiest way to migrate. I sp= ent 2 > weeks trying to convert using yaml and finally gave up. I installed node > red and spent 1 day getting to know it and then spent 1 day converting > everything I had custom in MH. HA is great but lacks saving states when > restarted, otherwise I find it much superior to MH. The number of devices > it supports is amazing! > > Good luck! > > Sent from my iPad > > On Mar 25, 2024, at 9:35=E2=80=AFAM, Dave Neudoerffer <[email protected]= om> > wrote: > > =EF=BB=BF > 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 m= y > 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. Thi= s > 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 = HA. >> I=E2=80=99d rather spend my time setting up automations than developing = device >> modules. So I=E2=80=99m thinking about running them in parallel, as my M= H instance >> has lots of logic that I don=E2=80=99t know how to replicate in HA, as w= ell as >> speech for home events, watering moisture calculations, etc=E2=80=A6 HA = would 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 = in 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 (weed= er >> and W800), which I=E2=80=99ll have to figure out. My hardware is also ol= d, so I=E2=80=99m >> seeing this as an opportunity to architect a bit more of a better soluti= on, >> 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 >> >> ________________________________________________________ > To unsubscribe from this list, go to: > https://lists.sourceforge.net/lists/listinfo/misterhouse-users > > --00000000000071d2a306147db2fe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">I have tried yaml, nodered and app daemon (python code) f= or automations in HA. But I am old, and have worked on my perl code in MH f= or a lot of years. Now all that code still works great even with the device= s in HA.=C2=A0=C2=A0<div dir=3D"auto"><br></div><div dir=3D"auto">My son en= ded up doing his HA automations using the websocket API from a program he w= rote in RUST (after also trying most of the HA automation options). I am ju= st fine doing them in perl, and MH seems like a reasonable place to host th= em.=C2=A0</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">On Mon, Mar 25, 2024, 11:05=E2=80=AFAM Dean Junk <<a hre= f=3D"mailto:[email protected]">[email protected]</a>> wrote:<br></div><blo= ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c= cc solid;padding-left:1ex"> <div dir=3D"auto"> I used MH for about 15 years and built a lot of code specific for my needs.= My biggest recommendation is to skip putting automations in the yaml files= . Use node red, it=E2=80=99s by far the easiest way to migrate. I spent 2 w= eeks trying to convert using yaml and finally gave up. I installed node red and spent 1 day getting to know it and then = spent 1 day converting everything I had custom in MH. HA is great but lacks= saving states when restarted, otherwise I find it much superior to MH. The= number of devices it supports is amazing!=C2=A0 <div><br> </div> <div>Good luck!</div> <div><br id=3D"m_473772874014208889lineBreakAtBeginningOfSignature"> <div dir=3D"ltr">Sent from my iPad</div> <div dir=3D"ltr"><br> <blockquote type=3D"cite">On Mar 25, 2024, at 9:35=E2=80=AFAM, Dave Neudoer= ffer <<a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"n= oreferrer">[email protected]</a>> wrote:<br> <br> </blockquote> </div> <blockquote type=3D"cite"> <div dir=3D"ltr">=EF=BB=BF <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 However, HA does not publish discovery nor support command= s on its entities via MQTT.=C2=A0 So I used the REST API to get a round tri= p=C2=A0 -- commands and some discovery via the REST API, state change via MQTT.=C2=A0 This was pretty clumsy still.=C2=A0 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 i= n HA, so you get everything.=C2=A0 I was giving it some time to settle, and wasn't sure whether anyone else would be i= nterested, but I am happy to share the module.=C2=A0 Or I could put togethe= r an MH push, but that would take me a day or two.</div> <div><br> </div> <div>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=AF= AM H Plato <<a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D= "noreferrer">[email protected]</a>> wrote:<br> </div> <blockquote 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 parallel, 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 m= oisture calculations, etc=E2=80=A6 HA would be a contained VM that would ho= ld the devices and maybe the user interface. I mainly use the floorplan IA7 interface, and 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 noreferrer" target= =3D"_blank"> https://lists.sourceforge.net/lists/listinfo/misterhouse-users</a><br> <br> </blockquote> </div> <span>________________________________________________________</span><br> <span>To unsubscribe from this list, go to: <a href=3D"https://lists.source= forge.net/lists/listinfo/misterhouse-users" target=3D"_blank" rel=3D"norefe= rrer">https://lists.sourceforge.net/lists/listinfo/misterhouse-users</a></s= pan><br> <span></span><br> </div> </blockquote> </div> </div> </blockquote></div> --00000000000071d2a306147db2fe-- --===============4998524194902792193== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4998524194902792193== 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 --===============4998524194902792193==--