#!/bin/bash # Toogle P2 through the PLM # http://www.madreporite.com/insteon/x10.html # https://www.smarthome.com/forum/post.asp?method=TopicQuote&TOPIC_ID=3906&FORUM_ID=9 # A7 off: 02636500 02526380 # A7 on: 02636500 02526280 # L2 on: 0263be00 0252b280 XL2LJ # L2 off: 0263be00 0252b380 XL2LK # P2 on: 0263ce00 0252c280 plmsend -d /dev/insteon -e 0263ce00 sleep 1 if [ "$1" = on ]; then plmsend -d /dev/insteon -e 0263c280 else plmsend -d /dev/insteon -e 0263c380 fi