skills/iot-devices/SKILL.md
# IoT Device Control Manage smart devices and custom hardware setups. ## Home Assistant Integration ### REST API ```bash # Get entity state curl -s -H "Authorization: Bearer $HA_TOKEN" \ "http://homeassistant.local:8123/api/states/light.living_room" # Turn on device curl -X POST -H "Authorization: Bearer $HA_TOKEN" \ -H "Content-Type: application/json" \ "http://homeassistant.local:8123/api/services/light/turn_on" \ -d '{"entity_id": "light.living_room", "brightness": 255}' # Turn o
npx skillsauth add balaraj74/f.r.i.d.a.y skills/iot-devicesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage smart devices and custom hardware setups.
# Get entity state
curl -s -H "Authorization: Bearer $HA_TOKEN" \
"http://homeassistant.local:8123/api/states/light.living_room"
# Turn on device
curl -X POST -H "Authorization: Bearer $HA_TOKEN" \
-H "Content-Type: application/json" \
"http://homeassistant.local:8123/api/services/light/turn_on" \
-d '{"entity_id": "light.living_room", "brightness": 255}'
# Turn off device
curl -X POST -H "Authorization: Bearer $HA_TOKEN" \
"http://homeassistant.local:8123/api/services/light/turn_off" \
-d '{"entity_id": "light.living_room"}'
# Set thermostat
curl -X POST -H "Authorization: Bearer $HA_TOKEN" \
"http://homeassistant.local:8123/api/services/climate/set_temperature" \
-d '{"entity_id": "climate.thermostat", "temperature": 22}'
# Run automation
curl -X POST -H "Authorization: Bearer $HA_TOKEN" \
"http://homeassistant.local:8123/api/services/automation/trigger" \
-d '{"entity_id": "automation.good_morning"}'
# Install mosquitto clients
sudo apt install -y mosquitto-clients
# Subscribe to topic
mosquitto_sub -h broker.local -t "home/sensors/#" -v
# Publish message
mosquitto_pub -h broker.local -t "home/lights/bedroom" -m '{"state": "ON"}'
# Publish with auth
mosquitto_pub -h broker.local -u user -P password -t "topic" -m "message"
# SSH to Pi and control GPIO
ssh [email protected] "gpio -g write 17 1" # Turn on GPIO 17
ssh [email protected] "gpio -g write 17 0" # Turn off GPIO 17
ssh [email protected] "gpio -g read 18" # Read GPIO 18
# Using Python on Pi
ssh [email protected] "python3 -c \"
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)
GPIO.output(17, GPIO.HIGH)
\""
# List serial devices
ls /dev/ttyUSB* /dev/ttyACM*
# Send command to Arduino
echo "LED_ON" > /dev/ttyUSB0
# Read from serial
cat /dev/ttyUSB0
# Interactive serial (screen)
screen /dev/ttyUSB0 9600
# Python serial
python3 -c "
import serial
ser = serial.Serial('/dev/ttyUSB0', 9600)
ser.write(b'LED_ON\n')
print(ser.readline())
"
# Install
pip install python-kasa
# Discover devices
kasa discover
# Turn on/off
kasa --host 192.168.1.100 on
kasa --host 192.168.1.100 off
# Get device info
kasa --host 192.168.1.100 state
# Get all lights
curl -s "http://hue-bridge/api/$HUE_USER/lights" | jq
# Turn on light
curl -X PUT "http://hue-bridge/api/$HUE_USER/lights/1/state" \
-d '{"on": true, "bri": 254}'
# Set color (hue: 0-65535)
curl -X PUT "http://hue-bridge/api/$HUE_USER/lights/1/state" \
-d '{"on": true, "hue": 25500, "sat": 254}'
# Create scene
curl -X PUT "http://hue-bridge/api/$HUE_USER/groups/0/action" \
-d '{"scene": "scene-id"}'
# Scan local network for devices
nmap -sn 192.168.1.0/24
# Find specific device by MAC
arp -a | grep "aa:bb:cc"
# Check if device is online
ping -c 1 192.168.1.100 && echo "Online" || echo "Offline"
mosquitto-clients - MQTTpython-kasa - TP-Link smart plugsnmap - Network scanningscreen or minicom - Serial communicationpython3-serial - Python serial librarysudo apt install -y mosquitto-clients nmap screen
pip install python-kasa pyserial
development
Get current weather and forecasts (no API key required).
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Control VS Code from the terminal. Open files, run commands, manage extensions, use the integrated terminal, interact with Copilot, and automate editor tasks. Use when a user asks FRIDAY to work with VS Code, edit files, or run VS Code commands.
tools
Start voice calls via the FRIDAY voice-call plugin.