Skip to content

Hammerspoon plugin to send sensors to HomeAssistant

License

Notifications You must be signed in to change notification settings

jlaffaye/HomeAssistant.spoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HomeAssistant.spoon

Usage

Checkout this repository in your hammerspoon config directory, under Spoons/.

Then, in your init.lua

hs.spoons.use("HomeAssistant") -- include the spoon

ha = spoon.HomeAssistant:configure({
    entity_name = "my_laptop",
    url = "http://192.168.0.42:8123",
    token = "your-user-token",
}):start()

Exposed entities

  • binary_sensor.work_laptop_battery_charging
  • binary_sensor.work_laptop_locked
  • binary_sensor.work_laptop_microphone_in_use
  • binary_sensor.work_laptop_plugged
  • binary_sensor.work_laptop_screens
  • binary_sensor.work_laptop_screensaver
  • binary_sensor.work_laptop_system
  • sensor.work_laptop_battery
  • sensor.work_laptop_battery_time_full_charge
  • sensor.work_laptop_battery_time_remaining
  • sensor.work_laptop_ssid

About

Hammerspoon plugin to send sensors to HomeAssistant

Topics

Resources

License

Stars

Watchers

Forks

Languages