Thursday, June 11, 2020

Automation

I have built a new Raspberry pi / relay box and will mod the existing openHab to run the new wiring layout.  Meantime I will prototype hass.io. I will probably have two SD cards in operation alternately.

The Epever Controller  has available  RS 485 / WI FI  and runs modbus.




  1.  GPIO ....... 8 ......... Reading Light (normally on) 
  2.  GPIO ....... 10 ......... Galley (normally on) 
  3.  GPIO ....... 12 ........ Pantry (normally on) 
  4.  GPIO ....... 16 .......... Function (normally off) 
  5.  GPIO ....... 18 ........ Function (normally off) 
  6.  GPIO ....... 22 .......... Function (normally off) 
  7.  GPIO ....... 24 .......... Function (normally off) 
  8.  GPIO ....... 26 .......... Function (normally off) 
  9.  GPIO .......  32 .......... Function (normally off) 
  10.  GPIO ....... 36 .......... Function (normally off) 
  11.  GPIO .......  38 .......... Function (normally off) 
  12.  GPIO ....... 40 .......... Outside Lights (normally off)

//June 11 2020

sitemap home label="Uberboltonwagen Zwei"
{

// Light Switching June 11 2020
Frame label="Lights"
{
Switch item=channel1 label="Reading"
Switch item=channel2 label="Food Prep"
Switch item=channel3 label="Pantry"
Switch item=channel4 label="TBA"
Switch item=channel5 label="TBA"
Switch item=channel6 label="TBA"
Switch item=channel7 label="TBA"
Switch item=channel8 label="TBA"
Switch item=channel9 label="Frontspace"
Switch item=channel10 label="Bathroom"
Switch item=channel11 label="Bed Space"
Switch item=channel13 label="Outside"
}

// Date and Time June 11 2020

Frame label="Date"
{
Text item=Date
icon=time
}
}



//Light Switching June 11 2020

Switch channel1 "Channel 1" { gpio="pin:8 activelow:no" }
Switch channel2 "Channel 2" { gpio="pin:10 activelow:no" }
Switch channel3 "Channel 3" { gpio="pin:12 activelow:no"}
Switch channel4 "Channel 4" { gpio="pin:16 activelow:yes"}
Switch channel5 "Channel 5" { gpio="pin:18 activelow:yes" }
Switch channel6 "Channel 6" { gpio="pin:22 activelow:yes" }
Switch channel7 "Channel 7" { gpio="pin:24 activelow:yes"}
Switch channel8 "Channel 8" { gpio="pin:26 activelow:yes"}
Switch channel9 "Channel 9" { gpio="pin:32 activelow:yes" }
Switch channel10 "Channel 10" { gpio="pin:36 activelow:yes" }
Switch channel11 "Channel 11" { gpio="pin:38 activelow:yes"}
Switch channel12 "Channel 12" { gpio="pin:40 activelow:yes"}

//Date and Time 3 April 2020

DateTime Date "[%1$tH:%1$tM : %1$tA, %1$tB %1$td, %1$tY]" 
{ channel="ntp:ntp:local:dateTime" }
 

No comments:

Post a Comment