I have some X10 hardware, I know it is not as sophisticated as the new zwave stuff (e.g. no state reading information) I can’t justify moving to new kit when what I have works well enough for me
I need some advice on how to add X10 support. Being selfish, I mostly care about my setup. Which is controlled by a (usb2serial adapter to) serial CM17A firecracker.
Options I’m considering but do not yet know enough about the HA framework/plugins:
I think I’d like to avoid resorting to shelling out
I’ve been using OpenHAB for a while and there is no support for serial CM17A firecracker but there is Mochad support (although there is no support for CM17A in Mochad!) My solution for OpenHAB was to implement a Mochad clone https://bitbucket.org/clach04/mochad_firecracker - is this approach worth pursuing with TCP binary sensors and TCP sensors or even adding Mochad support to HA?
Similar to #2 is there any value in me using another fake server? E.g. Wemo or wemo switch by hacking https://github.com/makermusings/fauxmo (it maybe this implements the wrong UI so this is all high level speculation). There are other examples of this (for example, Philips hue bridge simulator)
Adding a REST interface and hooking up to REST switch ?
Implementing CM17A support in HA directly (with the switch interface only initially and ignoring lamp support)
Something else?
Is there anyone else interested in X10? Apologies for the dumb questions.
One thing that took me a little time was working out how to have multiple rest switches, is that worth updating the docs for rest.switch with an example? It would have saved me some time as I initially cloned the switch section and then had duplicate definition errors.
Just for anyone else who has the cm19a, I’m using mochad plus mochad_dispatch to enable X10 sensors. Otherwise I am using a cmdline to send commands to the X10 devices.
I ended up reading up the (builtin) MQTT support in HA last night after I’d implemented the rest interface. Having built in MQTT support is certainly compelling.
Interesting that mochad_dispatch is a one-way bridge, and doesn’t send to mochad. @texnofobix did you look into adding send-command support to mochad_dispatch or are you happy with shelling to cmdline?
I just hacked in (undocumented and I’m not 100% happy with it) Mochad support to https://github.com/clach04/x10_rest, if https://github.com/jpardobl/hautomation_x10 is available it will use it and connect to the local Mochad server. It only treats it like a switch and the status support is essentially not there. I don’t have a cm19/15 device so this has NOT been tested with a real Mochad server (just my fake one).
Had a bug report, looks like this currently requires Python 3.5.1 as mochad support doesn’t work with Python 3.4 (potential fix is up on github but pip install won’t pick that up yet).
This looks cool. I have an old X10 installation that uses a Comfort controller. I’m looking to replace that with HA. I did get as far as hooking up the old serial X10 interface to my Pi, via a USB adaptor, and used shell calls to heyu to turn lights on and off. I’ll give this a try.
The other thing I need to is to hook up the existing PIRs to the Pi. I’m just wary of blowing it up
That would be great, it would be nice to get more hardware tested/supported.
I have limited hardware access, I only have a Firecracker. Someone with a real Mochad server has reported some oddities with delays for the library I’m using for talking to Mochad (https://github.com/clach04/x10_any/issues/1) which we’re working on right now, the more help we can get with debugging the faster this will be solved
I’ve only quickly skimmed the code, it looks like they show up as lights only, and dimming is not supported. I suspect you can use a regular switch module but it will show up as a light which is a little odd.
Dumb question; where does development discussion take place? I don’t have time to review all pull requests. I thought by joining and posting here I’d get to see x10 development discussions but the 0.25 release post was the first I heard about this.