Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlaffaye/homeassistant.spoon
Hammerspoon plugin to send sensors to HomeAssistant
https://github.com/jlaffaye/homeassistant.spoon
hammerspoon homeassistant
Last synced: about 2 months ago
JSON representation
Hammerspoon plugin to send sensors to HomeAssistant
- Host: GitHub
- URL: https://github.com/jlaffaye/homeassistant.spoon
- Owner: jlaffaye
- License: mit
- Created: 2024-05-13T19:28:52.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-10T15:17:59.000Z (7 months ago)
- Last Synced: 2024-06-10T17:46:27.803Z (7 months ago)
- Topics: hammerspoon, homeassistant
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HomeAssistant.spoon
## Usage
Checkout this repository in your hammerspoon config directory, under `Spoons/`.
Then, in your `init.lua`
```lua
hs.spoons.use("HomeAssistant") -- include the spoonha = 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