Were you ever able to fix the font/margins on this? Right now it looks weird.
I also have a general question, my sidebar is showing some errors. Like the date is not showing and something else is also throwing NULL. And phone stuff not working either?
@masoncrawford1994 Thanks for the help. Actually I am looking for a roller shutter card and icon/animation.
But @Quinnod34 does have some pretty icons.
Also thanks to @Mattias_Persson for the reply. The post references a cover and base_cover template, which I do not have available. Do you have more details on this?
Ideally I would like the card similar to the one in the screenshot.
It should contain state the name.
Below the status (opened/closed or percentage).
Double tab should open a list of mushroom cards, similar to the light card.
And if possible I would like to add swipe up on the card to trigger cover.open_cover, swipe down cover.close_cover and tap_action to action cover.stop_cover.
I did. It works. But the text alignment of the bigger number is incorrect.
Also on mobile it is weird.
The text doesn’t resize on mobile, stays big.
Thanks for pointing out the time&date.
I’m going through all files. Editing where needed. But some integrations are not mentioned on GitHub. That’s why i miss some.
I can’t figure out why I can’t grab the UDM-SE information.
Am I missing something? I updated the secrets.yaml, grabbed the packages file.
Created a local user on the UDM webui. Though, what kind of user does it have to be, Admin/Viewer?
I am getting this error:
Logger: homeassistant.components.command_line
Source: components/command_line/__init__.py:48
Integration: command_line (documentation, issues)
First occurred: 1:51:41 PM (1 occurrences)
Last logged: 1:51:41 PM
Command failed (with return code 1):
python3 << EOF import json, yaml, requests from datetime import datetime from urllib3 import disable_warnings disable_warnings() SECRETS_FILE = "/config/secrets.yaml" def get_secret(secret): try: with open(SECRETS_FILE, "r", encoding="utf8") as file: secrets = yaml.full_load(file) for key, value in secrets.items(): if key == secret: return value except FileNotFoundError: print("secrets.yaml not found") exit() IP = get_secret("unifi_ip") PORT = get_secret("unifi_port") USER = get_secret("unifi_user") PASS = get_secret("unifi_pass") URL = f"https://{IP}:{PORT}" login = requests.request("POST", f"{URL}/api/auth/login", \ headers={"Content-Type": "application/json"}, \ data=json.dumps({"username": USER, "password": PASS}), verify=False) response = requests.request("GET", f"{URL}/proxy/network/api/s/default/stat/device/", \ cookies=login.cookies, verify=False) data = response.json()["data"][0] print(json.dumps({ "cpu": data["system-stats"]["cpu"], "cpu_temp": round(data["temperatures"][1]["value"], 1), "mem": data["system-stats"]["mem"], "disk": round(data["storage"][1]["used"] / data["storage"][1]["size"] * 100, 1), "internet": data["internet"], "uptime": datetime.fromtimestamp(data["startup_timestamp"]).isoformat(), "version": data["displayable_version"] })) EOF
Kind of looks like the command line isn’t working.
YOU were right, the Sonsor wasn’t active, that’s how it looks now. However, the updates from Hacs are still not displayed to me. Do I have to install something for this…?? Or is nothing more detailed displayed in the HACS updates?
I have had this issue, it just fixed itself after a few days, I did turn the theme off and on again and that did it but only after trying that 10 times over 3 days. sorry I can’t be more help
Of course i searched this topic before i posted the question.
I don’t checked everything.
All is correct.
It just isn’t working.
I pinged the device, that works.
curl doesn’t work, i get authentication failed. With my admin account and the user i created.
But like I said, it seems the way the code is implemented doesn’t work.
I put the python code into a separate .py file, and change the command line in the router yaml to launch the python file.
Now my logs state that the json is empty, which is probably the result of authentication failure?
@bokkoman, I understand the frustration, I had the exact same issue recently and the error message is useless. can you confirm your role in UniFiOs is configured like mine.
Note: The permission for UniFi OS was the issue for me it needs to be Full management as well as the permission for Network