homeassistant | Home Assistant Development
kandi X-RAY | homeassistant Summary
kandi X-RAY | homeassistant Summary
This is an complete Home Assistant component for Xiaomi Gateway. It allows you to integrate the following devices into HA.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Setup the device
- Create the Mcast socket
- Start listening to messages
- Discover gateways
- Parse the data from the hub
- Fire a motion
- Get a message from hub
- Poll the hub status
- Push data
- Parse the battery level
- Discover devices
- Update the key
- Turn on brightness
- Listen to messages
- Turn the device off
homeassistant Key Features
homeassistant Examples and Code Snippets
Community Discussions
Trending Discussions on homeassistant
QUESTION
ANSWER
Answered 2021-May-30 at 02:24The key was to have proxy_wstunnel
mod active >_<
In case it helps anyone...
QUESTION
I've set up a simple Nginx reverse proxy using the "official image" Docker container. I've set it up to act as a front end for three containers, but only one is working correctly. The others load their index.html, but then try to pull ancillary files with URLs that make Nginx think they're local files.
The Docker host is called otto. I have Docker containers for Home Assistant listening on port 8123, Statping on port 8080, and Portainer on port 9000. Because I'm tired of remembering port numbers, my proxy_pass is set up so http://otto/homeassistant/ redirects to http://otto:8123/, http://otto/statping/ to http://otto:8080/ and http://otto/portainer/ to http://otto:9000
But, only Portainer works. The other two load their index.html just fine, but then start trying to pull javascript files from /js/somefilename.js. This of course fails, because there's no http://otto/homeassistant or http://otto/statping on the front of it. Nginx then tries to find the file locally in /etc/nginx/html, fails, and gives up.
My question is why does Portainer work so flawlessly when the other two can't even load a home page?
I've tried disabling local file serving, by commenting out location / { }, but it doesn't matter.
I've tried assigning HTTP headers that I've seen in other examples, like this:
...ANSWER
Answered 2021-Mar-18 at 15:29The problem was exactly as @zigarn had pointed out in the comments. The apps being reverse proxied were relying on URLs with a base of / and not something like /statping or /homeassistant. Portainer worked because it apparently does not have that same dependency.
The solution is to move away from reverse proxying based on URL and instead use reverse proxy based on hostname. So now, rather than http://otto.local/statping/, I have http://statping.otto.local/ All reverse proxied apps load their home pages with this arrangement, so I feel like it's a win.
There area still some minor troubles with homeassistant and node-red, and I suspect this may be due to a need to reverse proxy web sockets. Still researching that, but the main objective of getting them all to pull up a home page or login page has been accomplished.
Now for the gory details...
Because this is a home setup, with the standard, basic functionality internet router, I had to put some work into setting up a DNS server before names like statping.otto.local or homeassistant.otto.local would resolve.
To do this, I installed bind 9 on otto, the same host running the Docker containers. It's installed from a package on Raspberry Pi OS rather than as a container. The trick was to use a wildcard CNAME in addition to the DNS entry for otto.local.
With *.otto.local pointing to otto.local, I am able to get any combination of {appname}.otto.local to resolve to otto's IP address. Now, typing http://portainer.otto.local et al. gets me to otto and Nginx.
In the Nginx config, it's a matter of creating several entries that look like this one:
QUESTION
I have imported different data from homeassistant to influx db now I have it in a pandas dataframe and I would like to get the the mean() but it should be based on the time in the index.
I picked a small df to test and it looks like this:
...ANSWER
Answered 2021-Mar-11 at 19:25You can calculate durations for each value (time_next
- time
, then convert to seconds), and then take weighted average for each day:
QUESTION
I am trying to build a JavaScript class that allows me to interact with my Home Assistant server via web sockets (ws library.) The script is intended to be executed in the node.js environment.
...ANSWER
Answered 2021-Feb-15 at 19:16QUESTION
I want to make a few configuration files (for homeassistant) that are very similar to each other. I am aiming to use a template file as the base and put in a few substitution strings at the top of the file and use a bash script to read the substitutions and run sed with the applicable strings. i.e.
...ANSWER
Answered 2020-Oct-15 at 03:28You can do this with sed in two stages. The first stage will generate a second stage sed script to fill in your template. I'd make a small adjustment to your syntax and recommend that you require curly braces around your variable name. In other words, write your variable expansions like this:
QUESTION
I'm running home-assistant in a docker container on MacOS Catalina and need to allow HomeKit to interface with it. I'm trying to register a service with dns-sd to get it to work based on a fix recommended in a thread on the issue. The registration works, but the service doesn't appear afterward if I understand it correctly.
I first enter:
...ANSWER
Answered 2020-Oct-01 at 18:35If I run the following (zsh):
QUESTION
They are newbie to docker. Get phpmyadmin, php, home assistant working. But I can't configure the docker well to be able to connect from php to a database. Could you help me see what the problem is.
I tried everything. I read many posts with the same error but could not get it to work.
Thank you very much
This is my modified docker-compose
...ANSWER
Answered 2020-Aug-21 at 23:46You are exposing mysql
on host port: 6033
Did you try:
QUESTION
There are numerous posts about this issue but none that solve my problem.
I am using jwilder/nginx-proxy
as a reverse proxy and jrcs/letsencrypt-nginx-proxy-companion
to generate certificates.
For some reason at some point the certification process stopped working. This appears to be because /.well-known/acme-challenge/somefilename
is returning a 404.
As far as I can see this config:
...ANSWER
Answered 2020-Jul-17 at 15:52Just in case anybody else has this issue I have fixed it by removing containers, config files AND IMAGES and then recreating them... here is the process for those that have a setup similar to mine:
QUESTION
I'm trying to make a doorbell with raspberry pi, home assistant and telegram however i keep getting this error when trying to add parts to configurations.yaml.
Jul 14 15:49:19 homeassistant hass[9133]: 2020-07-14 15:49:18 ERROR (MainThread) [homeassistant.bootstrap] Failed to parse configuration.yaml: mapping values are not allowed here Jul 14 15:49:19 homeassistant hass[9133]: in "/home/pi/.homeassistant/configuration.yaml", line 23, column 12. Activating safe mode
Here is my configuration file.
...ANSWER
Answered 2020-Jul-14 at 15:51It's because trigger:
and action:
are more indented than alias:
. They need to be on the same indentation level.
When trigger:
is more indented than alias:
, it is read as part of the scalar value of alias
, effectively making the value of that scalar Doorbell_pressed_automation\ntrigger
. However, multiline scalars, while allowed, must not be used as implicit mapping keys. Hence, when the mapping value starts after the :
of trigger
, you get the error that mapping values are not allowed here.
QUESTION
I am currently setting up Home Assistant with Docker on a RaspberryPi 4. I used this tutorial : https://www.reddit.com/r/homeassistant/comments/cm4tzp/guide_for_installing_on_a_raspberry_pi4_using/ as a reference - so far so good.
Thing is I would like to use the i²c interface of the Raspberry to communicate with different devices. The relevant part of the docker-compose.yaml file looks like that:
...ANSWER
Answered 2020-Jul-06 at 09:04I just changed user: "1000:1000"
to user: "1000:998"
and everything seems to work. Until I find a better solution I'll only access directories owned by pi or the i2c group.
Maybe I'll create a group just for this purpose.
What seems to be the case is that although the UIDs in and outside of the container are the same, the user inside of the container doesn't have access to the directories owned by the groups the outside user is part of.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install homeassistant
First, copy all the files into the Home Assistant location. It can now be installed either to the custom_components folder
Add the following line to the Configuration.yaml. Make sure you're on the latest firmware. You will need to get the Hub's key in order to issue command to the hub like turning on and off plug. Follow the steps here http://bbs.xiaomi.cn/t-13198850
Start HA. Pycrypto should install automatically. If not, install pycrypto manually. if you are using virtual environment, remember to install from virtual environment like below
Add friendly names to the Configuration.yaml like below
Add automation. For the Button and Switch, use the following event. Available click types are 'single', 'double' and 'hold'. For door window sensor and motion sensor, you can use State or Event as trigger
For Cube, use the following trigger. Available actions are flip90, flip180, move, tap_twice, shake_air, swing, alert, free_fall and rotate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page