nragon / keeper Goto Github PK
View Code? Open in Web Editor NEWA service to monitor and maintaining MQTT and HomeAssistant
License: MIT License
A service to monitor and maintaining MQTT and HomeAssistant
License: MIT License
Hello Nuno,
Upon trying to install into hass.io using your instructions, i.e. by adding the URL:
https://github.com/nragon/keeper/tree/master/setup/hassio
I am having the following error:
19-10-11 21:38:52 INFO (MainThread) [hassio.core] Hass.io is up and running 19-10-11 21:40:47 INFO (MainThread) [hassio.store.git] Clone add-on https://github.com/nragon/keeper/tree/master/setup/hassio repository 19-10-11 21:40:48 ERROR (MainThread) [hassio.store.git] Can't clone https://github.com/nragon/keeper/tree/master/setup/hassio repository: Cmd('git') failed due to: exit code(128) cmdline: git clone --depth=1 --recursive --shallow-submodules -v https://github.com/nragon/keeper/tree/master/setup/hassio /data/addons/git/625ce890 stderr: 'Cloning into '/data/addons/git/625ce890'... fatal: repository 'https://github.com/nragon/keeper/tree/master/setup/hassio/' not found '. 19-10-11 21:40:48 ERROR (MainThread) [hassio.store] Can't load from repository https://github.com/nragon/keeper/tree/master/setup/hassio 19-10-11 21:40:49 INFO (MainThread) [hassio.store] Load add-ons from store: 61 all - 0 new - 0 remove 19-10-11 21:41:21 INFO (MainThread) [hassio.store.git] Clone add-on https://github.com/nragon/keeper/tree/master/setup/hassio repository
Do you have a clue about what's going on here? May it be just a Dockerfile thing?
Thank you
Cheers,
Luis Teixeira
lovelace and the newish device_class: timestamp
need a timestamp format like this:
2019-07-22T07:26:00+02:00
this could be accomplished by changing the TIME_FORMAT
constant in constants.py
:
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z"
however this produces an UTC timezone without colons (which HA needs):
2019-07-22T07:26:00+0200
iโm not very good at python, so i put this into constants.py
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S"
and hard coded this into connector.py
and heartbeater.py
:
last_message_fmt = strftime(TIME_FORMAT)+"+02:00"
after that, this works:
- platform: mqtt
state_topic: "homeassistant/sensor/kpLastHeartbeat/state"
name: kpLastHeartbeat
icon: mdi:calendar-clock
device_class: timestamp
may be you have a better idea how to do that with datetime.isoformat
in python.
When adding https://github.com/nragon/keeper/tree/master/setup/hassio to hassio repository, it does not work.
This is my system log:
19-04-26 12:00:33 INFO (MainThread) [hassio.addons.git] Clone add-on https://github.com/nragon/keeper/tree/master/setup/hassio repository
19-04-26 12:00:33 ERROR (MainThread) [hassio.addons.git] Can't clone https://github.com/nragon/keeper/tree/master/setup/hassio repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone --depth=1 --recursive --shallow-submodules -v https://github.com/nragon/keeper/tree/master/setup/hassio /data/addons/git/625ce890
stderr: 'Cloning into '/data/addons/git/625ce890'...
fatal: repository 'https://github.com/nragon/keeper/tree/master/setup/hassio/' not found
'.
19-04-26 12:00:33 ERROR (MainThread) [hassio.addons] Can't load from repository https://github.com/nragon/keeper/tree/master/setup/hassio
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.