Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
/ BypassAPI Public archive

Custom component for disable Home Assistant REST API authentication

Notifications You must be signed in to change notification settings

AlexxIT/BypassAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

BypassAPI for Home Assistant

hacs_badge

Disable authentication for Home Assistant REST API. Useful when headless installation is used (disabled frontend and default_config).

Config

Only REST API

#default_config: 

bypass_api:

sonoff:
  username: mymail@gmail.com
  password: mypassword

yandex_station:
  username: mymail@yandex.ru
  password: mypassword

REST API and WebSockets

e.g. for Node-RED - use any token (not empty)!

auth:
bypass_api:
websocket_api:

Usage

curl --request POST \
  --url http://192.168.1.123:8123/api/services/homeassistant/turn_on \
  --header 'content-type: application/json' \
  --data '{"entity_id": "switch.sonoff_mini"}'
curl --request POST \
  --url http://192.168.1.123:8123/api/services/media_player/play_media \
  --header 'content-type: application/json' \
  --data '{
	"entity_id": "media_player.yandex_station_mini",
	"media_content_id": "How are you?",
	"media_content_type": "text"
}'

About

Custom component for disable Home Assistant REST API authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages