Wow, you completely rocked this, nice work David, I got as far as
cloning the git repo and was starting to look at replacing print ""
with print(""). Well done, I will give it a try when I get a chance.
I have a couple of thoughts:
1)
I looked into Home Assistant and liked that they were using Asyncio but
their way of writing drivers for devices is no way as clear and easy as
Pytomation from my point of view. Their documentation is lacking some
as well for such a mature project. Well I need to work on ours as well
but....
2)
I liked that they were using some third party stuff for Insteon, we
should maybe look at that but I don't necessarily agree that they seem
to automatically pull in the PIP repo for dependencies, in fact I
disagree as it can break things without notification. At least with
Pytomation we pull in a version and it will run.
3)
I would like to implement a few changes and additions to the standard
instance file specifically around multiple times in triggers etc. I
find it a bit limiting and drop into the mainloop for regular python
code which is one of the better ideas in Pytomation if you ask me.
4)
Would like to see a way to reload the instance without restarting. I
have stuff that runs only at Christmas so I either comment/uncomment
code and restart or have an IF statement, but then it requires
restarting as well, a bit messy.
5)
I added a WebButton device as follows:
from pytomation.devices import InterfaceDevice, State
from pytomation.interfaces import Command
class WebButton(InterfaceDevice):
STATES = [State.UNKNOWN, State.OFF, State.ON]
COMMANDS = [Command.ON, Command.OFF, Command.STATUS]
This way I can see just the controls I want in the web/app ui instead
of seeing a large list of generics.
We could call it something else UiButton or ????? I only did this in
my own local repo so far.
Other stuff will come back to me but that is it off the top of my head,
did add some changes to the time stuff about a year ago but it needs
expanding.
Oh yeah need to work on the HUE stuff some, I find it works great but
could use a few changes to fix status updates etc.
I will try run this up on a raspberry Pi and see how well it runs.
Cheers
George
> --
> You received this message because you are subscribed to the Google
> Groups "pytomation" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
pytomation+...@googlegroups.com.
> To post to this group, send email to
pytom...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.