Skip to content

Provides an Website to control 433 mhz radio controlled sockets

Notifications You must be signed in to change notification settings

jdtte/RF-Switcher-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RF-Switcher-Website

Provides an Website to control 433 mhz radio controlled sockets using only flask. Uses 433Utils/RPi_utils codesend.

Example

Website

Home Assistant Configuration Example

Can be added as a RESTful Switch in Home Assistant.

switch:                      
- platform: rest                                
  name: "LED Desk"                 
  resource: http://<Endpoint>/api/switches       
  body_on: '{"name": "1", "value": "ON"}'                 
  body_off: '{"name": "1", "value": "OFF"}'     
  headers:                                          
      Content-Type: application/json            
  state_resource: http://<Endpoint>/api/status/1        
  is_on_template: '{{ value_json.status }}'    
  
- platform: rest         
  name: "Lamp"        
  resource: http://<Endpoint>/api/switches    
  body_on: '{"name": "2", "value": "ON"}'   
  body_off: '{"name": "2", "value": "OFF"}'                           
  headers:                   
      Content-Type: application/json            
  state_resource: http://<Endpoint>/api/status/2      
  is_on_template: '{{ value_json.status}}'  

About

Provides an Website to control 433 mhz radio controlled sockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published