homeassistant websocket api
This commit is contained in:
8331
include/ArduinoJson.hpp
Normal file
8331
include/ArduinoJson.hpp
Normal file
File diff suppressed because it is too large
Load Diff
20
include/hass.hpp
Normal file
20
include/hass.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef HASS_HPP
|
||||
#define HASS_HPP
|
||||
|
||||
#include <libwebsockets.h>
|
||||
|
||||
#include <ArduinoJson.hpp>
|
||||
#include <iostream>
|
||||
#include <print>
|
||||
#include <string>
|
||||
|
||||
#define HASS_ADDRESS "home.drath.win"
|
||||
#define HASS_TOKEN "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI0MzUxMTZiY2VjNTg0MTI3OGI4YmU0NTY4ZGQ5MzIyYiIsImlhdCI6MTc1NzQzMDI0MCwiZXhwIjoyMDcyNzkwMjQwfQ.6wKTlxEA0FLWfv-qW35vewUSvTxdVrZWqFwHT5Khu6E"
|
||||
#define HASS_ENTITY "sensor.gniazdko_komputer_moc"
|
||||
|
||||
int hass_connect();
|
||||
void hass_poll();
|
||||
float hass_get();
|
||||
void hass_disconnect();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user