This commit is contained in:
estevez
2018-09-10 00:45:20 +03:00
parent 5c7958e559
commit 7ed95b19dc
5 changed files with 82 additions and 12 deletions

View File

@ -40,8 +40,8 @@ class _MyHomePageState extends State<MyHomePage> {
List entities = [];
void _getHassStates() async {
String dataURL = "https://edwin-home.duckdns.org:8123/api/states";
http.Response response = await http.get(dataURL, headers: {"X-HA-Access": "7415963"});
String dataURL = "https://homeassistant:8123/api/states";
http.Response response = await http.get(dataURL, headers: {"X-HA-Access": "password"});
setState(() {
entities = json.decode(response.body);
});