vkorn / hassio-addons Goto Github PK
View Code? Open in Web Editor NEWHass.io add-ons
Hass.io add-ons
Hi,
I configured the smartthings ide to point to the smartthings mqtt bridge, but I don't see any events or activities in the events.log. I'm think the port is not listening in the docker even though the logs says it is listening to port 2080.
e.g.:
starting version 3.2.2
info: Starting SmartThings MQTT Bridge - v1.3.4
info: Loading configuration
info: Loading previous state
info: Perfoming configuration migration
info: Saving current state
info: Connecting to MQTT at mqtt://192.168.1.117:1883
info: Configuring autosave
info: Configuring API
info: Listening at http://localhost:2080
Here's the result from running "docker ps":
Notice the first record does not have any port listening activities. But the other dockers have it open.
Here's my config.yml file settings using hassio.io IDE screen:
{
"broker_host": "192.168.1.117",
"broker_port": 1883,
"preface": "smartthings",
"state_suffix": "state",
"command_suffix": "cmd",
"login": "********",
"password": "*******",
"bridge_port": 2080
}
Should I see port open for 2080 when i run 'docker ps' command?
Please excuse me if this is a noob question, but I'm having some issues figuring out the SmartThings API.
I'm having issues trying to figure out how to setup the Device on My Devices IDE. Right now, I have the IP address of the device according to my router, the MAC address according to my router and port 2080. I've tried the IP address and MAC address that SSHing into the terminal and running ifconfig gives me and ports 2080, 8888, and 8080 (the port that worked on my old setup) on each IP/MAC address combination. My assumption is still that the addresses are the IP address and MAC address given by my DHCP server and I thought the port would be 2080, since that's what it looks like it is in config.json.
Can anyone help with this? Thanks
Currently installs 2.0.8, but 2.1.11 is available. Can you create a new version so we can install this in hassio?
AppDaemon ReadMe page - the link to the Official Repo is broken.
log errors:
17-08-08 16:28:16 ERROR (MainThread) [hassio.addons.git] Can't clone https://github.com/vkorn/hassio-addons/tree/master/appdaemon repo: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v https://github.com/vkorn/hassio-addons/tree/master/appdaemon /data/addons/git/4db42e04
stderr: 'Cloning into '/data/addons/git/4db42e04'...
remote: Not Found
fatal: repository 'https://github.com/vkorn/hassio-addons/tree/master/appdaemon/' not found
I'll start out by saying I'm a noob and don't really know what I'm doing.
I have Hass.io installed and setup with quite a few things pulling data, but no automations yet. I have Mosquito MQTT setup along with CloudMQTT and they seem to be talking to each other. I'm pulling owntracks into Mosquito from CloudMQTT. So far no matter what combination I've tried, I can't get SmartThingsBridge to talk to either MQTT client. Below is my current log, options are pointing to Mosquito MQTT using localhost IP (also tried local network IP & duckdns.org address.) IP, Username & Password match my MQTT broker config in configuration.yaml
starting version 3.2.2
info: Starting SmartThings MQTT Bridge - v1.3.4
info: Loading configuration
info: Loading previous state
info: Perfoming configuration migration
info: Saving current state
info: Connecting to MQTT at mqtt://127.0.0.1:1883
events.js:160
throw er; // Unhandled 'error' event
^
Error: Invalid password
at connect (/usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/mqtt-packet/generate.js:147:13)
at Object.generate (/usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/mqtt-packet/generate.js:11:14)
at sendPacket (/usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/mqtt/lib/client.js:34:26)
at MqttClient._setupStream (/usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/mqtt/lib/client.js:263:3)
at new MqttClient (/usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/mqtt/lib/client.js:209:8)
at Object.connect (/usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/mqtt/lib/connect/index.js:132:10)
at connectToMQTT (/usr/lib/node_modules/smartthings-mqtt-bridge/server.js:309:23)
at /usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/async/lib/async.js:718:13
at iterate (/usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/async/lib/async.js:262:13)
at /usr/lib/node_modules/smartthings-mqtt-bridge/node_modules/async/lib/async.js:274:29
This post is a great documentation of how to set up the PS4Waker component, start to finish. https://community.home-assistant.io/t/playstation-4-ps4-custom-component/16974/73
It would be great to add its content, or at least a link, to the readme.
ps4-waker has a option --bind for multiple network.
if hassio run on 2 networks (192.168.1.136) and (192.168.2.136) they dont find the correct ps4.
We have to use --bind so ps4-waker can search device on the rigth network
I believe this has something to do with the states.json file not being updated. I can’t tell if this is an issue with this add-on or with the smartthings-mqtt-bridge
When I installed this component into HASS.IO, I had to change the port to 3031 in the component options to get it to respond correctly.
I hope that this is a simple solution, but I have been trying to fix it for several weeks now.
First, I am using Hass.io plugin
info: Incoming message from SmartThings: smartthings/Office/switch/state = on
info: Incoming message from MQTT: smartthings/Office/switch/cmd = off
info: Incoming message from MQTT: smartthings/Office/switch/cmd = off
light:
- platform: mqtt
command_topic: "smartthings/Office/switch/cmd"
state_topic: "smartthings/Office/switch/state"
payload_on: "on"
payload_off: "off"
My problem is that I can't control Smartthings devices from MQTT as I would like. Any ideas on what could be wrong?
Hopefully someone else has seen and come up with a fix to the following problem.
I've managed to get the component working on Hassio and it does the start/stop and changes Apps and games correctly, with one exception.
Unfortunately, it seems that while the PS4 (Pro) starts from rest/standby ok, the login (set to auto login) sits waiting for someone to press the PS key on the PS controller.
Anyone got a solution to this or able give me any pointers to investigate?
Each time I start Appdaemon I see this error in the log:
2017-09-19 11:57:31.512574 WARNING Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 911, in read_app
conf.modules[module_name] = importlib.import_module(module_name)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 678, in exec_module
File "", line 205, in _call_with_frames_removed
File "/config/hadaemon/apps/kodi.py", line 2, in
from homeassistant.components.media_player.kodi import (
ModuleNotFoundError: No module named 'homeassistant'
I am running a kodi.py app:
If anyone could help me I would greatly appreciate it. I am new to all of this and am lost.
Running HASSIO on Raspberry Pi3 and can't get the appdaemon to connect. I just get many of the same error messages: WARNING Unable to connect to Home Assistant, retrying in 5 seconds.
Here is my \HASSIO\config\hadaemon\appdaemon.yaml file:
AppDaemon:
cert_verify: False
logfile: STDOUT
errorfile: STDERR
threads: 10
app_dir: /config/hadaemon/apps
HASS:
ha_url: https://hassio.local:8123/
ha_key: STRONGPASS
ssl_certificate: '/ssl/fullchain.pem'
ssl_key: '/ssl/privkey.pem'
HADashboard:
dash_url: http://cp.local.io
dash_dir: /config/hadaemon/dashboards
When I reload my dashboard I get a dialog box saying "Error getting state, check Java console for details".
It's entirely possible I have my configuration completely messed up...
appdaemon.yaml
AppDaemon:
cert_verify: False
disable_apps: 1
logfile: STDOUT
errorfile: STDERR
threads: 10
app_dir: /config/hadaemon/apps
HASS:
ha_url: http://192.168.1.254:8123
HADashboard:
dash_url: http://cp.local.io
dash_dir: /config/hadaemon/dashboards
Add-on Options
{
"domain": "cp.local.io"
}
Network Host
3030
Dashboard
#
# Main arguments, all optional
#
title: Main Panel
widget_dimensions: [122, 120]
widget_margins: [5, 5]
columns: 2
#
# Layout
#
layout:
- Back, Lamp
Back:
widget_type: light
title: Back
title2: Light
entity: light.back
Lamp:
widget_type: light
entity: light.living_room_lamp
title: Lamp
He, I'm not able to start PS4-Addon
Log shows no entry. When I click start, nothing happens.
Heres my config:
{
"port": 3031,
"devices": [
{
"client_type": "i",
"auth_type": "C",
"credentials": "XXXX"
}
]
I'm not sure if you would be able to help, but I'm going to try anyways. I'm trying to use ps4-waker on hass.io following this guide: https://community.home-assistant.io/t/playstation-4-ps4-custom-component/16974/73
My problem is that when I SSH into the RPi and run ps4-waker, everything works fine. When I try to go to http://HA_IP_ADDRESS:3031/ps4/PS4_IP_ADDRESS/info, I'm getting a json {"status":"Could not detect any matching PS4 device"}.
It seems like a network issue, but I confirmed that both my RPi and my PS4 are on the same network so I don't think using --bind would help.
UPDATE:
I was able to get this reinstalled but still I can't get it to work. Please help. I could also use some help with the reverse proxy. I couldn't get that working either.
here are my config files in case I have something else wrong
Appdaemon.yaml:
AppDaemon:
cert_verify: False
logfile: STDOUT
errorfile: STDERR
threads: 10
app_dir: /config/hadaemon/apps
HASS:
ha_url: https://mydomain:8123/
ha_key: MyPassword
ssl_certificate: ssl/fullchain.pem
ssl_key: ssl/privkey.pem
HADashboard:
dash_url: http://hass.mydomin.com (this is the domain I have added in place of the default)
dash_dir: /config/hadaemon/dashboards
My Python File and a section from my configuration.yaml to add this to the Hassio GUI:
https://pastebin.com/v5sXDj00
This is all that is in my NGINX reverse proxy at this time as I am not sure what to do here:
{
"domain": "mydomain.com",
"certfile": "ssl/fullchain.pem",
"keyfile": "ssl/privkey.pem"
location / {
proxy_pass http://localhost:3030;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Output of curl -k -H "x-ha-access: MyPassword" https://mydomain:8123/api/history/period
91912bd3293f vkorn/amd64-appdaemon "/usr/bin/entry.sh..." 2 hours ago Up 2 hours 0.0.0.0:3030->80/tcp addon_e5829d31_appdaemon
Output of docker logs -f CONTAINER_ID_OF_APP_DAEMON
WARNING Unable to connect to Home Assistant, retrying
I could also use some assistance on the config for the HADashboard.
I hope I have given enough information to aid anyone in assisting me. I am truly grateful for the assistance. I am a total n00b at all of this. I do have some knowledge of Linux and I am running this inside a docker container on Debian Jessie.
I would really love to get this reinstalled and working. A big thanks to anyone who might assist me.
Hello.
I have big problem with Wrapper
After put ps4 to standby mode i have this 3 times in minute
Failed to call info: {“status”:“Could not detect any matching PS4 device”}
Everything works flawless, i can start or standby but non stop have error in logs.
I have ported this addon over to the hassio directory of addon like you stated on your main page. It shows up under local but I keep getting this error each time.
19-03-20 01:04:26 INFO (SyncWorker_12) [hassio.docker.interface] Pull image vkorn/armv7-smartthings tag 0.0.3.
19-03-20 01:04:36 INFO (MainThread) [hassio.auth] Auth request from a0d7b954_ide for xxxxx
19-03-20 01:04:37 INFO (MainThread) [hassio.auth] Auth request from a0d7b954_ide for xxxxx
19-03-20 01:04:38 INFO (MainThread) [hassio.auth] Success login from xxxxx
19-03-20 01:04:39 INFO (MainThread) [hassio.auth] Success login from xxxxx
19-03-20 01:04:42 ERROR (SyncWorker_12) [hassio.docker.interface] Can’t install vkorn/armv7-smartthings:0.0.3 -> 404 Client Error: Not Found (“pull access denied for vkorn/armv7-smartthings, repository does not exist or may require ‘docker login’”).
Not sure what I am doing wrong here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.