Skip to content

brianmiller/chili-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chili-assistant

chili-assistant works with ChiliSleep's Ooler system and communicates over Bluetooth Low Energy (BLE). I'm using a Raspberry Pi 3 Model B, but any Linux system with a Bluetooth 4.0+ radio will work.

chili-assistant requires a message bus. I'm a fan of Mosquitto MQTT which works great with Home Assistant.

Simple execution examples:

./ooler_service 5C:02:72:AA:BB:CC 37648-mqtt1.phospher.com > /tmp/ooler_brianooler.log 2>&1 &
./ooler_service 5C:02:72:XX:YY:ZZ 37648-mqtt1.phospher.com > /tmp/ooler_wifeooler.log 2>&1 &

Example Home Assistant 'climate' card

image

Click to see Home Assistant 'climate' card yaml exmaple
- platform: mqtt
  name: "Brian's Bed"
  modes:
    - 'auto'
    - 'off'
  fan_modes:
    - "low"
    - "medium"
    - "high"
  mode_command_topic: "oolers/5C:02:72:AA:BB:CC/command/power"
  mode_command_template: '{% if value == "off" %}00{% else %}01{% endif %}'
  mode_state_topic: "oolers/5C:02:72:AA:BB:CC/state/power"
  mode_state_template: '{% if value == "01" %}auto{% else %}off{% endif %}'

  temperature_command_topic: "oolers/5C:02:72:AA:BB:CC/command/thermostat"
  temperature_state_topic: "oolers/5C:02:72:AA:BB:CC/state/thermostat"
  temperature_unit: F

  current_temperature_topic: "oolers/5C:02:72:AA:BB:CC/state/temp"

  fan_mode_command_topic: "oolers/5C:02:72:AA:BB:CC/command/fan"
  fan_mode_command_template: '{% if value == "high" %}02{% elif value == "medium" %}01{% else %}00{% endif %}'
  fan_mode_state_topic: "oolers/5C:02:72:AA:BB:CC/state/fan"
  fan_mode_state_template: '{% if value == "02" %}high{% elif value == "01" %}medium{% else %}low{% endif %}'

  max_temp: 115
  min_temp: 55

  precision: 1.0
  unique_id: "ooler_brian"

Whenever time allows:
  • Add regular polling for status updates sent to message bus, currently status updates are realized after a command is sent to the bus
  • Containerize ooler_service and include a direct and mobile friendly UI, removing the need for Home Assistant
  • Author and publish the message bus queues, commands, inputs and outputs
  • About

    Chilisleep to mqtt: great with Home Assistant

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published