smart-home | Smart home config ( RPi , ESP , many sensors
kandi X-RAY | smart-home Summary
kandi X-RAY | smart-home Summary
Smart home config (RPi, ESP, many sensors, node-red, influxdb, zigbee2mqtt)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of smart-home
smart-home Key Features
smart-home Examples and Code Snippets
Community Discussions
Trending Discussions on smart-home
QUESTION
I have this project: https://github.com/neuberfran/firebasefunction/blob/main/firebase/functions/smart-home/fulfillment.js It works well. But, for example, I want to implement a condition that if I have the garage closed and I said "close garage", the Home assistantt will alert me about it.
As shown in the photo below, I am using an rpi3/iot-device/back-end that controls the garagestate field. I need to know the best way to implement this condition, that is, read the value of the garagestate field and from that, know if I can open the garage or not:
...ANSWER
Answered 2021-Mar-16 at 19:50You'd probably need to add an intermediary condition in your onExecute
to return an error based on the Firestore state:
QUESTION
I am referencing to the smart-home-nodejs git repository on Actions On Google. This template provides an end to end example of how the smart-home app can be use. However, instead of using firebase, can I use my own database that host my devices and I would want to just call the Homegraph api to sync. Would this be possible?
Thank you.
...ANSWER
Answered 2021-Mar-01 at 17:28Yes, the implementation of your backend can be designed however you want. You also are not restricted to using Cloud Functions or App Engine. While the end-to-end sample provides one example of how to do it, your backend just has to implement a webhook and respond to intents plus have support to do things like report state.
The API reference contains all the information you needed to build a custom implementation.
QUESTION
I am looking for an ideally open source application for my next DIY smart-home-project, that frontend is web-based and plays the media on the server rather than on the client. The application would ideally be platform independent, for example java based web application, as my server would be either an ARM based or an Intel based SBC with linux as an operating system. Storage can be anything, like FS or DB, does not matter.
My use case: When I open 'http://my.media.local' from my phone's browser and select a media file, for example an audio file to play, then the media file is played on the server rather than on my mobile phone or in the browser of my mobile so that the sound/video/picture comes out from my server's audio/display output rather than from my phone's audio/display output. Obviously it would come with other basic features, like volume control and equalizer et cetera.
Is there anything like this on the market? I have found a few media library but not sure how they work. Any advise would be welcomed.
...ANSWER
Answered 2020-Oct-26 at 20:09A potential solution is VLC (https://www.videolan.org/). VLC has an optional web based frontend, where the media player can be controlled, that is running on the server. It is very basic but plays the audio file. If you know other solutions then please leave another answer.
How to enable the VLC WEB frontend:
- Open 'Preferences' from the menu
- At the bottom-left, click 'Show All'. This will show you all VLC configuration
- Select 'Interface'/'Main Interface' from the list
- Tick the 'Web'
- Select 'Interface'/'Main Interface'/'Lua' from the list
- Add a Password under 'Lua HTTP'. You will use this password without user name - yes, I did not find a way to set user name but password is mandatory - to access the web frontend.
- Re-start your VLC
- Open a browser from a device from your LAN
- Enter the 'http://your_IP:8080' to your browser. For example, http://192.168.1.2:8080
- Enter your password that you set at step 6., but leave the user name blank
I have tested it with:
- Server: Raspberry PI 3
- OS: Raspbian GNU/Linux 10 (buster)
- VLC: 3.0.11 Vetinari
- Works with VLC running as GUI application (/usr/bin/vlc)
- Works with VLC running as a background process (/usr/bin/cvlc/)
- Sound: Well, my screen has some sort-of speaker. Audio was coming out it via the HDMI of my RPI
- Client, where the VLC was successfully controlled from
- My laptop
- My smartphone
Some pros:
- Free, open-source
- Configuration and startup is easy
- Frontend is available for both desktop and mobile
Some cons:
- Equalizer is not yet supported
- Frontend is very basic
- Volume cannot be properly controlled from phone: could not slide the slider, but sets the volume to the position where you click on the slider
- Phone: Cannot play all media files in a folder when the folder is clicked. It just played the first, so had to write some shell script to generate playlist files for each and every folder
- Did not find a configuration within VLC to change the default port from 8080 to 80 or to 443 for SSL.
Further guidance for customisation:
- The files for web frontend are stored in
/usr/share/vlc/lua/http
folder. It uses html, json, xml, js, jquery and this sort of stuff so you should be able to customize it for yourself given you understand the basics of these technologies and languages. - There is a button on web-frontend that shows you all your files in your home folder. You can navigate to anywhere with it, that raises security concerns. Well, and it is not too nice to wander away from your media files.
- Here you can set your default folder:
/usr/share/vlc/lua/http/js/controllers.js
QUESTION
I have this issue open on github for 10 days: https://github.com/GoogleCloudPlatform/iot-smart-home-cloud/issues/20
I can see the devices registered in the firestore(look photo below), but they do not appear on the mobile screen or in the Angular/web application. In the latter case, the devices are correctly registered in the GCP/Cloud Iot Core Api/PubSub.
I already registered 1 device using the tutorial below, which also does not appear http://nilhcem.com/iot/cloud-iot-core-with-the-esp32-and-arduino
How to solve?
...ANSWER
Answered 2020-Aug-31 at 18:08The Device Manager sample app you are working with registers the data scanned from a device QR code to the pending
Firestore collection until until the backend can establish that the data provided matches an existing valid device in Cloud IoT Core (see the relevant code).
If you are able to successfully register a device to pending
but it's never removed from that collection, then the issue is in that code path somewhere. The cloud function logs should provide some insight into why your code is failing there (e.g. invalid credentials, bad configuration, etc.)
You might also find this blog post helpful, which overviews the architecture of the sample code's use case.
QUESTION
I have created a couple of devices using the https://github.com/actions-on-google/smart-home-java sample project. I have also successfully linked my account and see these devices in my Google Home app. I am also able to click on a "On" or "Off" button next to the Lamp device, and I see the value change in Firestore.
However, when I click on the device it says "Not responding" on the top and "Offline" in the middle of the screen. I do not see any errors in the "smart-home-java" server logs.
Has anyone else experienced something similar? How should I approach debugging this?
...ANSWER
Answered 2020-Aug-21 at 18:26As mentioned briefly in the comments, this is likely because your project is failing to successfully call Report State. The most likely cause of this is that your Home Graph API credentials are missing or incorrect.
In the current sample code, an error in this method call will cause the handler to return deviceOffline
from a QUERY
. You can also comment out or remove this line to debug the issue.
QUESTION
I'm trying to use Google Sheets as a scraper to get product descriptions prices and images from a specific store. https://www.aliexpress.com/store/group/xiaomi-Aqara-Smart-home/2389096_516541380.html
I'm trying to retrieve the image URLs from this page but in the end, I'm not able to make it work.
...ANSWER
Answered 2020-Aug-10 at 19:21That page is loaded dynamically using javascript, and the sample html in your question is a result of that. Absent some trickery (you can search around for scripts to handle dynamically loaded pages), GS can't retrieve that data.
Fortunately, not ALL data is loaded like that. If you disable JS on that page, you will get most of the same data, including the info; only this time - it looks like this:
QUESTION
There is similar question, but it doesn't answer my question - does Google Home App supports real time updates from the Report State requests?
I searched everywhere and didn't find the answer. Neither documentation or app says anything about that. My requests are accepted by home graph API, but state of the device in the app not updated in the real time.
...ANSWER
Answered 2020-Apr-17 at 15:33At the moment the Google Home app does not update the state in realtime. If you close and open the app, you should see the state change.
If you call the Report State API and get a 200
response code, then you've done it right.
QUESTION
I try to understand how my javascript code that handle local execution bahavior is download in my google home mini. I know I give an url towards a server or a web page here :
And this code is used in my google home to handle local execution but I just put my web page url here, in the test tab. So if I want to deploy my app in a production environnement, how will i do that ? I did not see any other place to put the url toward my code.
I red this page: https://developers.google.com/assistant/smarthome/concepts/local
And followed this tuto: https://github.com/actions-on-google/smart-home-local
Thanks for your answers.
...ANSWER
Answered 2020-Feb-17 at 10:03Finally, i found my response. For now, local execution is just in preview. So no production management is implemented yet.
QUESTION
I have a problem with a site that I'm building. I have a navigation bar on my website and I'm trying to replace the menu item "profile" with the email address from the logged-in user. It works just fine, the email is shown but the only problem is that the email (depends on email length) is too big for the navigation bar item. Can I fix this in CSS or JavaScript?
To change the menu item "profile" to the email address I used a script inside the HTML (so not a separate file)
What works:
- I can put the email variable into my HTML
What doesn't work:
- The email variable is not
Link to my website:
https://runes-smart-home.web.app
And you can log in with those credentials:
...Email: thanksforhelping@stackoverflow.com (I took a long email by purpose)
Password: Thanks123!
ANSWER
Answered 2019-Oct-12 at 10:30You have to put this code in your html. it will helps you. Output of this code is ,if email is too large than dots is appear and on hover full email is display.
QUESTION
I'm having a hard time implementing requestSync. It always returns
...ANSWER
Answered 2019-Aug-07 at 21:04Finally found the answer.
It wasn't too far from the one I had posted above. Although my problem is that when I generated an API key, the google home cloud console opened the wrong project by default. I had the wrong API key all along.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install smart-home
You can use smart-home like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
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