Menu

Tree [6fefce] main /
 History

HTTPS access


File Date Author Commit
 images 2022-05-23 Doug Wyman Doug Wyman [bca05e] Update Capture.gif
 .gitattributes 2022-05-19 Doug Wyman Doug Wyman [81289b] Initial commit
 Control_Hex_Codes.txt 2022-08-22 Doug Wyman Doug Wyman [c4c37a] Update Control_Hex_Codes.txt
 README.md 2022-08-22 Doug Wyman Doug Wyman [6fefce] Update README.md
 bedflat.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedheaddown.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedheadup.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedlegsdown.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedlegsup.py 2022-05-23 Doug Wyman Doug Wyman [84f811] First upload
 bedset1.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedset2.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedset3.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedset4.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedvibrate1.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedvibrate2.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedvibrate3.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedvibrate4.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 bedvibrateoff.py 2022-05-20 Doug Wyman Doug Wyman [c99ace] a work in progress
 controls.yaml 2022-05-23 Doug Wyman Doug Wyman [84f811] First upload
 dashboard.yaml 2022-05-23 Doug Wyman Doug Wyman [18c53a] ambiguities

Read Me

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 are called by command_line platform cover entities
created in Home Assistant.
- controls.yaml

I've added the dashboard as a yaml file and made more clear that the middle
button in the cover control is FLAT for position and Vibration Off for vibes.

  • dashboard.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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.