0.9.53 • Published 6 years ago

pimatic-mochad v0.9.53

Weekly downloads
24
License
GPL-2.0
Repository
github
Last release
6 years ago

NPM version

pimatic-mochad

Connects pimatic to mochad (an X10-controller controller)

Description

pimatic-mochad gives you control over your X10-units via RF (433 Mhz), powerline (PL) and pimatic(-mobile-frontend)

Hardware schematic

                                       RF Antenna (433 Mhz)
          
                                       \ /           \ /
           Network                    - o -         - o -
 +---------+     +---------+   USB      |             |   
 | RPi     |-----| RPi [1] |════════╗   |             `-- X10 devices (sensors, remotes, ..)
 | Pimatic |     | Mochad  |        ║   |                         
 +---------+     +---------+       +-----+                        
                                   |     |
          _OR_                     | X10 |
                                   |     |
 +-------------+     USB           |     |
 | RPi Pimatic |═══════════════════|     | X10 controllor (CM15A/CM19A/CM15Pro)
 | and Mochad  |                   +-----+
 +-------------+                     |  
                                     `----- Powerline ------> X10 devices 
                                                              (switches, dimmers, blinds, ..)
                                     
 [1] Or even OpenWrt (, etc) running Mochad                                    

Contemplations

I've choosen mochad over node-x10 because mochad allows us to run pimatic on a different host as the X10 controller is attached to. For example, you can run your mochad instance on OpenWrt, while running pimatic on your Raspberry Pi.

Configuration

Under "plugins" add:

{
  "plugin": "mochad"
}

Under "devices" add (something like):

{
  "id": "CM15Pro",
  "class": "Mochad",
  "name": "CM15Pro",
  "host": "192.168.1.11",
  "port": 1099,
  "units": [
    {
      "id": "light-kitchen",
      "class": "MochadSwitch",
      "name": "Kitchen Light",
      "housecode": "P",
      "unitcode": 1,
      "protocol": "pl"
    },  
    {
      "id": "light-living",
      "class": "MochadSwitch",
      "name": "Living Light",
      "housecode": "P",
      "unitcode": 2,
      "protocol": "rf"
    }
  ]
}   

Some cool rules

if it is 18:00 then turn Kitchen Light on

if button "All lights off" is pressed then tell CM15Pro to send "pl a all_lights_off"

if it is after 23:00 and CM15Pro receives event "rf a all_lights_off" then push title:"Good nigth!" message:"Sleep well, sir!"

if CM15Pro receives event "rf a9 on" then turn Kitchen Light off and turn Living Light on

0.9.53

6 years ago

0.8.3

9 years ago

0.8.2

11 years ago

0.8.1

11 years ago

0.8.0

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago