I don’t have a computer running Linux for the moment (if we exclude a few virtual ones).
And i wanted to use both bluetooth, RFXtrx and with no way of adding them to my virtual machines that was reliable, I set out to add the needed functionality on my own.
Now sadly i don’t know python so all the code is written in c# but once compiled its like any .exe file if you have .net framework 4.6.2 installed (Included in Windows 10 Anniversary
).
The following where problems i wanted to solve
- I found no official way to run
Home Assistant
as a Windows service. - I wanted to use the Mi flora component but it was dependent on gatttool.
- Use IIS as reverse proxy and add multiple logins (while not requiring me to login when in connected to the local wifi at home).
I have solved all problems and my code can be found on github Home-Assistant-Windows-Tools.
One last thing to get the mi flora component to work please edit .homeassistant\deps\miflora\miflora_poller.py
and change
with Popen(cmd,
shell=True,
stdout=PIPE,
preexec_fn=os.setsid) as process:
to
with Popen(cmd,
shell=True,
stdout=PIPE) as process:
in 2 places.
I hope this helps some else!