Skip to content

Doug-Wyman/Tempurpedic_Control

Repository files navigation

Tempurpedic Control

my screen

Tempurpedic control is a set of python scripts. Each script sends the title command to a Tempurpedic adjustable bed frame.

  • bedflat.py --- lowers both head and feet
  • bedheaddown.py --- Lower the upper body
  • bedheadup.py --- Raise the upper body
  • bedlegsdown.py --- Lower the legs
  • bedlegsup.py --- Raise the legs
  • bedset1.py --- go to preset bed position 1
  • bedset2.py --- go to preset bed position 2
  • bedset3.py --- go to preset bed position 3
  • bedset4.py --- go to preset bed position 4
  • bedvibrate1.py --- go to preset vibration mode 1
  • bedvibrate2.py --- go to preset vibration mode 2
  • bedvibrate3.py --- go to preset vibration mode 3
  • bedvibrate4.py --- go to preset vibration mode 4
  • bedvibrateoff.py--- Turn off all vibration

These scripts can be called by command_line platform cover entities or command_line platform switch entities I will be testing using shell_command services to execute the python and a button to call it. It is annoying to me that the switch entity has on/off when it is a momentary switch. created in Home Assistant configuration.yaml

  • covercontrols.yaml has the controls as a cover
  • switchcontrols.yaml creates the controls as switches

I've added two dashboards as yaml files. One has the controls as a cover entity. The other uses the command line switch.

  • coverdashboard.yaml ---The dashboard seen at the top of this readme.md
  • switchdashboard.yaml ---The dashboard seen at the top of this readme.md

The scripts use a hard coded IP address for the bed. Change the line in each file UDP_IP = "192.168.0.155" to the UDP_IP = [your local address]

Tempurpedic has codes for 0 to 10 levels of vibration for each of the three zones (upper body, hips and legs). If I can find an easy way of implementing these 30 levels I will do so. These codes are in the table of codes.

 A BIG caveat...  One would think There would be a way of controlling more than
 a single bed.  Thus the first few bytes may address a particular bed.  The program
 queries the web page at port 80 and that page may have a prefix code.  I would do 
 that if I were coding the program.  I only have one bed so I can't check it.

I wish there was a "command_line platform light" entity.

Doug

I'll be 80 years old Nov 2022 and would love it if some young hacker (the good kind) would fork off this into a good and more efficient set of scripts and entities.

About

Link a Tempurpedic bed frame to Home Assistant

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages