Quantcast
Channel: Configuration - Home Assistant Community
Viewing all 108105 articles
Browse latest View live

Control size of card in lovelace

$
0
0

Forgive a noob for asking what I’m sure is a noob question but my Google-Fu has not been able to discover a solution.
I have a lovelace view, I have placed a picture elements card and directed it to my desired image in my www folder.
When I save it the image is huge on the screen and I am unable to see the entire image without scrolling.
I have been able to reduce the size of the image by using the horizontal stack card and creating some empty columns next to my picture but this solution does not offer a fine level of control.
Ideally I’d like to have my image span 90% of the available screen real estate.
Is there a way that I can control the height (or width) of a card to a percentage of the screen?

2 posts - 2 participants

Read full topic


How to automate light switch and cover close

$
0
0

Hello,

i want to have one button with two actions.
First action will switch light to on and second action will close cover.
Could you help me how to do it?
How the code in automation.yaml is supposed to look?

Regards,
Lukasz

1 post - 1 participant

Read full topic

Device class for Rain

$
0
0

Maybe I’m stupid, but I try to configure a device for rain, but cant get this working.
I kind of expected a rain device_class to exists, but getting error saying invalid device class.

What device_class should I use for measuring rain?

1 post - 1 participant

Read full topic

Modbus TCP float format Big Endian

$
0
0

Hello, I have working modbus configuration but I need to swap double-bytes in float.

  - platform: modbus
    scan_interval: 5
    registers:
    - name: test2
      hub: gmodcnv
      slave: 1
      register: 6
      register_type: input
      data_type: float
      structure: '>f'

I try ‘<f’ and ‘>f’ but without luck.
I probably don’t fully understand https://docs.python.org/3/library/struct.html
When I change data format to int, it give me 17266 = 0x00004372 but I need 0x43720000 (as input for float).

Strange thing: both ‘<f’ and ‘>f’ give me a value 4, but 0x00004372 is 2.4194819285e-41

How can I swap this “double bytes”? ( @pnbruckner can you help me, please? )

1 post - 1 participant

Read full topic

What is the connection between the Nabu Casa Cloud TTS and the Alexa Media Player from HACS

$
0
0

I would like to use the TTS functionality of Nabu Casa with my Alexa Echo Dot.
But I don’t understand how it is related to the Alexa Media Player from HACS.

Is the Alexa media player needed to use the Nabu Casa cloud TTS?
Or is the media player a different way to use TTS?

And if the Alexa media player is independent form Nabu Casa how do I make Nabu Casa work with my Alexa without using the media player from HACS?

1 post - 1 participant

Read full topic

ZHA stopped connecting to Sonoff ZHABridge today

$
0
0

ZHA (with flashed sonoff zigbee bridge tasmota) has been working fine except today. I tried reflashing Tasmota and setting everything back up. I deleted the integration and tried to re-add but cannot get it to connect. You can see on the Tasmoto Console that it is talking but i am not sure what happened that cause it to suddenly stop working. I am on the latest release of HASSIO 0.114.4.
Anyone else experiencing this?

1 post - 1 participant

Read full topic

How do I delete the database on home assistant

$
0
0

How do I delete the database on Home assistant?

I’m getting “recorder could not start” errors and everything I’ve read tells me I need to delete the database and start over. How do I do that?

From what I’ve read I have to ssh to the raspberry pi on port 22222 to do this. I’ve set up and installed the public key and get into the system but where is the database file located? And what is the best procedure to delete it?

I get an ha > prompt.
I type: login
and get access to the file system but where is the db located?
And… should I stop HA before deleting the db?

Can someone point to any documentation or forum post with instructions on how to do this?

It’s hassio on a raspberry pi 4.

2 posts - 2 participants

Read full topic

How to activate GPIO pin before sunset?

$
0
0

Hi all,

I’m trying to activate a GPIO pin 1 hour before sunset. I’m banging my head without results, and there’s nothing in the docs that illustrates this :frowning:

I have a relay connected to GPIO 4 on the raspberry where Hass is running. Here’s my configuration file:

# Configure the GPIO pins
switch:
  - platform: rpi_gpio
    ports:
      04: Livingroom_lamp

After reading some posts I came up with the automation file below but then Hass reboots in safe mode and throws all kind of errors saying that it doesn’t understand the file.


- alias: Living room lamp on
  trigger:
    platform: sun
    event: sunset
    offset: '-01:00:00'
  action:
    - service: switch.turn_on
      entity_id: switch.Livingroom_lamp

- alias: Living room off at 11PM
  trigger:
    platform: time
    at: 23:00
   
  action:
    - service: switch.turn_off
      entity_id: switch.Livingroom_lamp

Can anybody help me with an automation file to turn GPIO 04 on 1 hour before sunset and off at 11PM?

Thanks beforehand!

1 post - 1 participant

Read full topic


SmartThings integration not adding devices

$
0
0

Hello,

SmartThings was up and running until a reboot that made all of the entities unavailable. I usually have luck re-installing the integration. This time, however, it installs but does not add any of my configured devices. I have tried using the removal tool without success. I am using the integration with Nabu Casa. Any help is appreciated! Log below.

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 219, in async_setup
    result = await component.async_setup_entry(  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 130, in async_setup_entry
    devices = await api.devices(location_ids=[installed_app.location_id])
  File "/usr/local/lib/python3.8/site-packages/pysmartthings/smartthings.py", line 101, in devices
    return [DeviceEntity(self._service, entity) for entity in resp]
  File "/usr/local/lib/python3.8/site-packages/pysmartthings/smartthings.py", line 101, in <listcomp>
    return [DeviceEntity(self._service, entity) for entity in resp]
  File "/usr/local/lib/python3.8/site-packages/pysmartthings/device.py", line 785, in __init__
    self.apply_data(data)
  File "/usr/local/lib/python3.8/site-packages/pysmartthings/device.py", line 129, in apply_data
    self._type = data["type"]
KeyError: 'type'

1 post - 1 participant

Read full topic

Configuration for 3A Smart Home RGBW Controller

$
0
0

Hello,
I have this new Zigbee device and it supports multiple switches for RGBW, it was picked up by the controller but it has one switch that appears to do nothing… I am somewhat new to this in HA and it might be something simple, any help would really be appreciated as I am stumped… It reports as the following:

LXT56-LS27LX1.7
by 3A Smart Home DE
Zigbee Coordinator
Firmware: 0x00000001
#### Zigbee info
Nwk: 0xe93f
Device Type: Router
LQI: 255
RSSI: -69

The signature is:

{
  "node_descriptor": "<Optional byte1=1 byte2=64 mac_capability_flags=142 manufacturer_code=4478 maximum_buffer_size=127 maximum_incoming_transfer_size=90 server_mask=11264 maximum_outgoing_transfer_size=90 descriptor_capability_field=0>",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x010d",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0008",
        "0x0019",
        "0x0300",
        "0x1000"
      ],
      "out_clusters": [
        "0x0019"
      ]
    }
  },
  "manufacturer": "3A Smart Home DE",
  "model": "LXT56-LS27LX1.7",
  "class": "zigpy.device.Device"
}

Any idea how to proceed?

Thanks!

1 post - 1 participant

Read full topic

Honeywell TotalConnect Configuration Lost After Reboot

$
0
0

I configure the Honeywell total connect alarm via the UI and al works fine. Entities are discovered, tha alarm panel is available and all is good. Once I reboot the alarm panel is lo longer accessible even the configuration is still present in the UI. I need to delete the integration it and re-add the Honeywell integration in the UI for it to work. Only till the next reboot where it will no longer work again. Any thoughts on what might be causing this?

1 post - 1 participant

Read full topic

Hassio iOS app no connect with nuba cloud

$
0
0

Hi, I can’t configure nabu on the app in ios … it works with wifi but when I’m out I can’t I also tried to uninstall and reinstall … now I have configured the internal connection and on the external one instead there is nothing but the cloud configuration shouldn’t take it automatically?

1 post - 1 participant

Read full topic

Creating Group of Power Points

$
0
0

I’m wanting to create a group of power points that I have and have tried to follow the guidance here:

HA Groups

However, I get as far as typing in “group::” in configuration.yaml and the file editor shows an error.

Can someone please offer some guidance on this?

2 posts - 2 participants

Read full topic

Get entity configuration in python script / integration

$
0
0

Sorry for the stupid question.
I have several switch types in my home with different configuration and I need to perform some action with them. Action logic depends on switch configuration. For example if Switch is MQTT and command_topiс contains “-bridge-” - perform some extra steps.

But I can’t find how to get configuration yaml (dictionary) having only entity_id.

I can get state like

toilet_light= hass.states.get('switch.toilet_light')

but how to return configuration below?

  - platform: mqtt
    name: toilet_light
    availability_topic: 'tele/rf-bridge-first-floor/LWT'
    payload_available: 'Online'
    payload_not_available: 'Offline'
    state_topic: 'stat/rf-sensor-toilet/STATE'
    state_off: 'OFF'
    state_on: 'ON'
    command_topic: 'cmnd/rf-bridge-first-floor'
    payload_on:  "on"
    payload_off: "off"

1 post - 1 participant

Read full topic

Alternatives for Pi 4 Bluetooth Device Tracking

$
0
0

The Pi 4 for well over the past year has been giving me awful sporadic ‘away’ and ‘home’ status changes for our two iPhones.
Worked perfectly on the 3B+.

Still trying to work out if this is a Home Assistant issue or a Pi 4 firmware thing.

Have been using HACS with the iPhone Tracker integration which has been working alright but now with iOS 14 coming it appears that breaks it.
https://github.com/mudape/iphonedetect

If it is a Pi 4 issue then how can I update? Any integrations I don’t know about or maybe some hardware add-on that will help me out?
Any ideas for good methods of device tracking. I see you have iCloud and MQTT but want to avoid things that use mobile data or potential battery drain.

Almost thinking of using Google home and just getting it to change a boolean for me at this stage…

79631026-36152400-81aa-11ea-8a55-c9a95da26da1 79631029-37dee780-81aa-11ea-9619-f50b7183635f

1 post - 1 participant

Read full topic


I tried all the camera platforms so you don't have to

$
0
0

When I started with Home Assistant a couple years ago, one of the main use cases was making a nice dashboard which included my cameras. Unfortunately this simple desire has been far from easy to achieve. In my quest for something reliable and real time, I think I have now tried every option that is open to me and realized that none of them is really perfect, but I’ve learned enough that it’s at least worth sharing so that other people have some better idea of their options and which one might fit their use case first. So, let’s start.

To begin, I am running 4x 1080p hikvision cameras configured with a 1080p h.264 main stream and a ~700x500 h.264 substream and they are working perfectly using the same streams with my synology and frigate object detection. The stream has never dropped from those systems that I can remember. Not the case with hass unfortunately.

I have tested the MJPEG stream from the substream too. Also during my testing I switched everything over from TCP to UDP to reduce lag a couple seconds and tried to enable multicast but I’m not sure if it’s working. TI’m going to list the camera platforms I’ve tried in order of worst to best for my use case (which involves a few tablets around the house with both persistent small previews and temporary popups for when humans are detected) with ratings for various properties. You can see my config here

MJPEG (with and without streaming component enabled):

MJPEG cameras are extremely close to realtime, even with streaming component turned on. You can choose from a live view which gives a decent framerate (but which my tablets can’t handle) or a The downside seems to be that only one thing can be streaming the camera URL at a time. This even applies to hass endpoints, So if one hass session is viewing the camera, the other hass sessions cannot. That alone makes it unusable for my use case as I have multiple tablets that need the stream simultaneously. Also I noticed frequent cases where the streams would smear and have other visual artifacts.

Also, synology forces you to choose H.264 or MJPEG for all the streams, so if I switch the substream on my camera to MJPEG (main stream doesn’t support it), it means that I have to choose to only use the main stream or substream in Synology.

MJPEG Camera Rankings:
Lag: 10/10 (this is the least laggy camera platform in hass, 1 sec or less)
Framerate 8/10 (decent, but not the best)
Kindle Fire/ Fully Kiosk Tablet friendliness: 10/10 (can get high framerate 1080p previews for the one tablet that grabs the stream)
Reliability: 7/10 (if you only have one device ever accessing the stream, it’s rock solid, add one more device however, and the reliability is a perfect 0. Unfortunately sometimes the cameras smear, maybe due to CPU load on the cameras).
Usability: 2/10 (only usable if I have only 1 hass dashboard open with the camera streams, with more the streams fail)
Server CPU: 10/10 (no noticeable effect on hass server cpu)
Camera CPU: 3/10 (the cameras don’t appear to like serving MJPEG streams and bog down)

FFMPEG Camera Platform without Stream Component Enabled:

I had high hopes for FFMPEG to give me the reliability of MJPEG type streams that it transcodes from the h.264 streams that don’t kill my cameras. Unfortunately it brought the CPU on my 2011 mac mini Ubuntu server to it’s knees. I tested it on an 2019 i7 mac mini to see if I could get the kind of real time feed and reliability I wanted if I threw enough processor at it, but unfortunately even when given plenty of overhead to play with, it didn’t produce reliable feeds. It also created a lot of smearing in the camera feeds.

FFMPEG Camera Component Rankings:
Lag: 7/10 (2-3 seconds, not bad.)
Framerate 7/10 (Probably 1-2 FPS IIRC)
Kindle Fire/ Fully Kiosk Tablet friendliness: 10/10 (I can’t remember it ever failing to display. Most reliable one out of all of them.)
Reliabiliy 4/10 (A lot of dropouts and failures to load in lovelace, even on a powerful CPU, also smeared the stream)
Usability: 4/10 (The CPU requirements and lack of reliability mean it’s not real practical)
Server CPU: 2/10 (the CPU killer)
Camera CPU: 10/10 (cameras aren’t even serving the stream)

FFMPEG Camera Platform with Stream Component Enabled:

Turning on the stream component with FFMPEG increases realiability and framerate a bit at the expense of 10 additional seconds of lag.
FFMPEG Camera Component Rankings:
Lag: 2/10 (13 seconds, not very useful)
Framerate 8/10 (Something near full 4 fps)
Kindle Fire/ Fully Kiosk Tablet friendliness: 4/10 (Can’t use the live stream so stuck with the 1 frame every 10 seconds)
Reliabiliy 4/10 (A lot of dropouts and failures to load in lovelace, even on a powerful CPU)
Usability: 3/10 (The lag, CPU requirements and lack of reliability mean it’s not real practical)
Server CPU: 2/10 (the CPU killer)
Camera CPU: 10/10 (cameras aren’t even serving the stream)

Generic Camera Platform Without Stream Component:

This works okay, pretty low lag and you can choose between a 1 frame every 10 second preview or a “live” preview which gets maybe 1 frame every 1-2 seconds. The problem is that the streams tend to drop off the UI or not load, so unfortunately reliability isn’t very good.

Generic Camera without Stream Component Rankings:
Lag: 8/10 (2-3 seconds of lag)
Framerate 5/10 ( 1 frame every 1-2 seconds for “live”. does the job, but not good)
Kindle Fire/ Fully Kiosk Tablet friendliness: 3/10 (don’t display reliably on really any device)
Reliability:: 3/10. Streams would often blank out or not load
Usability: 3/10: Reliability kills it
Server CPU: 10/10 (no noticeable effect on hass server cpu)
Camera CPU: 10/10 (cameras don’t mind serving h.264 streams)

Generic Camera Platform Without Stream Component:

I was using my cameras this was for a long time simply due to the reliability of the streams and framerates. Only very occasionally they wouldn’t appear on my tablets, but often on my desktop I would have to click the … and do a refresh before they would update. But they had about 13 seconds of lag which in the end I realized was just useless for anything other than instant replay when the kids were fighting (could be a nice feature to add to other realtime camera streams :-)). This camera platform needs some parameters to tweak the HLS stream to reduce latency, then it will be pretty good.

Generic Camera with Stream Component Rankings:
Lag: 2/10 (13 seconds of lag)
Framerate 5/10 ( very good, my cameras only do 4 fps but I appeared to get all of that)
Kindle Fire/ Fully Kiosk Tablet friendliness: 5/10 (fully kiosk on kindle wouldn’t allow the live stream for more than 1 camera, it would crash, so I had to run without live stream which worked quite reliably but was very slow)
Reliabiliy 8/10 (Live stream not super reliable, but non live is quite reliable)
Usability: 8/10 (work well if you don’t mind the lag)
Server CPU: 10/10 (no noticeable effect on hass server cpu)
Camera CPU: 10/10 (cameras don’t mind serving h.264 streams)

Synology Camera Platform:

This is a funny one, it only grabs the substream of the camera from synology and gives you 1 frame every 5 seconds or so. This limited it’s usefulness because my substream is 4x3 aspect ratio which doesn’t look good on my dashboard with my portrait orentation camers which I stack next to each other. But what I did use it for a while for was to do the preview popups which despite having low framerate was more realtime and in a good aspect ratio for popups on my landscape orientation tablets.

Synology Camera Component Rankings:
Lag: 7/10 (when it finally refreshes the frame, it only has 2-3 seconds of lag)
Framerate 4/10 ( 1 frame every 5 seconds, not so good)
Kindle Fire/ Fully Kiosk Tablet friendliness: 10/10 (I can’t remember it ever failing to display. Most reliable one out of all of them.)
Reliabiliy 10/10 (The only reliable camera platform in hass that I’ve found)
Usability: 8/10 (work well if you don’t mind the substream and the frame rate)
Server CPU: 10/10 (no noticeable effect on hass server cpu)
Camera CPU: 10/10 (cameras aren’t even serving the stream)

ONVIF Camera Platform with stream component:

This was one of the last ones I tested because I didn’t see any reason why it should be any different than the generic camera, but it was. First off, it seems to be a bit more reliable. Secondly it gives you the sensors from the camera like motion detection. One of these sensors is very useful and not available from the other camera/sensor platform, which is the CPU level sensor. Once I had this I started to realize how much of a factor my camera CPU was in the performance of the whole camera display. Very useful.

ONVIF Camera Component with Stream Component Enabled Rankings:
Lag: 2/10 (13 seconds of lag)
Framerate 5/10 ( very good, my cameras only do 4 fps but I appeared to get all of that)
Kindle Fire/ Fully Kiosk Tablet friendliness: 5/10 (fully kiosk on kindle wouldn’t allow the live stream for more than 1 camera, it would crash, so I had to run without live stream which worked quite reliably but was very slow)
Reliabiliy 8/10 (Live stream not super reliable, but non live is quite reliable)
Usability: 8/10 (work well if you don’t mind the lag)
Server CPU: 10/10 (no noticeable effect on hass server cpu)
Camera CPU: 10/10 (cameras don’t mind serving h.264 streams)

ONVIF Camera Platform without stream component:

This is where the reliability of the platform really started to shine. I was able to get these 1080p streams to come up pretty reliably (though not perfectly) in lovelace using the live view of ~1fps even on tablets. This level of real time with pretty good reliability was not something I had found before.

I am still running with these ONVIF cameras with the addition of a proxy camera (next rating) for preview, but I use the full 4 fps substream to get a near real time (1 second lag) popup with ~2-3 FPS on the tablets when people are detected outside. It’s not 100% reliable but maybe 95%, the drop in reliability from synology component is made up for by having ~10 times higher framerate.

ONVIF Camera Component without Stream Component Enabled Rankings:
Lag: 9/10 (~1 second of lag, very good)
Framerate 8/10 (getting 2-3 out of the 4 fps I think)
Kindle Fire/ Fully Kiosk Tablet friendliness: 6/10 (I don’t recall if I had them working with live view on the tablet, but I don’t think they would at 1080p)
Reliabiliy 8/10 (Not perfect, but better than most)
Usability: 8/10 (Lack of lag and good framerate make them a good choice)
Server CPU: 10/10 (no noticeable effect on hass server cpu)
Camera CPU: 10/10 (cameras don’t mind serving h.264 streams)

Proxy Camera Platform without stream component:

I was pretty excited when I found the proxy camera component because the only stream I had with the 16x9 aspect ratio I needed was 1080p and I knew that that was causing problems on my frontend.

Proxy camera allowed me to divide the resolution by 6 in each direction which was still fine for the DPI of the displays I was using, so now I’m running 320x180 preview streams that are downsized by the proxy component. This means that they load up very quickly in the frontend and I can run them in live view on the tablets very nicely.

Unfortunately they do seem to load up the camera’s CPU a bit, but I seem to be able to just barely squeak by with this enabled and not totally kill the camera’s CPU.

ONVIF Camera Component without Stream Component Enabled Rankings:
Lag: 9/10 (~1 second of lag, very good)
Framerate 8/10 (getting 2-3 out of the 4 fps I think)
Kindle Fire/ Fully Kiosk Tablet friendliness: 9/10 (fully kiosk doesn’t choke on these and can be run at 1 frame every second or 2 which is fine for a small preview)
Reliabiliy 8/10 (Not perfect, but better than most. Sometimes drops or stops updating for a while)
Usability: 8/10 (Lack of lag and good framerate make them a good choice)
Server CPU: 7/10 (pretty minimal, at least how I use them… Something like extra 8%)
Camera CPU: 4/10 (added something like 30% additional load to the CPU, bringing them right to the limits of usability)

Conclusion:

So currently I am running the ONVIF cameras with the proxy component. I use the substream when I have a popup on my tablets to give a decent framerate and low latency stream which is about the most those tablets can handle. Proxy is giving the previews I have in the lovelace cards on the tablet and my main hass dashboard on iOS or browser. Not 100% reliable but maybe 95% for both the lovelace and popups… I’d love to see 100% someday, but for now this is the best configuration I’ve found.

Special mention: MQTT camera. I use this one for my snapshots of humans detected on our property. Never had any problems with it, but I’m not really putting it through it’s paces. I only need 1 frame every 5 seconds or something.

2 posts - 1 participant

Read full topic

[Noob] Switch/Sensor with 3 states? [SNMP]

$
0
0

I finally was able to get ethernet port report from my switch with SNMP.

I have a switch in HA called TPLink Switch Port 2 and a sensor TPLink Switch Port 2 Status. I also have the ability to get the name of the port from SNMP (and I think set it too).

TPLink Switch Port 2 Status
1 = Working/Connected
2 = Nothing connected or TPLink Switch Port 2 off

TPLink Switch Port 2
1 = On/Enabled
2 = Off/Disabled

Visual states I want to accomplish:

  • Easy way to check if something is connected or not (Status=1)
  • Switch next to status
  • Show the custom label retrieved from SNMP
  • Keep in mind that I have 28 ethernet ports XD

In a somewhat perfect world:
image
Put for now I would be pleased with just a entities card showing the right status. The ability to set the port label/name from HA and send it with SNMP would be awesome though!

I wish I had the ability to create a single entity with all the states like GPSLogger does, everything at the same place. But… I think I would need a custom integration for that?

I thought about using entities card in pair of 8 until I try to make my own component to display that in a nice way.

UI right now:
image

Port 2 Status
image

Port 2 Switch
image

Current code (I have to start somewhere):

# 1 = Something is connected, 2 = Nothing there or disabled
sensor:
    - platform: snmp
      name: TPLink Switch Port 2 Status
      host: !secret tplink_switch_ip
      auth_protocol: 'hmac-sha'
      username: !secret tplink_switch_snmp_username
      auth_key: !secret tplink_switch_snmp_password
      version: '3'
      baseoid: 1.3.6.1.2.1.2.2.1.8.49154
      accept_errors: true

# 1 = Enabled, 2 = Disabled
switch:
    - platform: snmp
      name: TPLink Switch Port 2
      host: !secret tplink_switch_ip
      auth_protocol: 'hmac-sha'
      username: !secret tplink_switch_snmp_username
      auth_key: !secret tplink_switch_snmp_password
      version: '3'
      baseoid: 1.3.6.1.2.1.2.2.1.7.49154
      payload_on: 1
      payload_off: 2

1 post - 1 participant

Read full topic

Picture elements randomly resizes state images

$
0
0

Ok… so I’ve been setting up my 3d floorplan using picture elements. All of my overlay images are the exact same size as the main image. the problem I am encountering is that one image (for my bedside light) is changing sizes depending on what I am viewing the page in. All of the other images are rendering normally.

Example:

View of page in chrome browser on PC:

View of page in Home Assistant app on phone:

Here is the relevant code from the lovelace card in question:

type: 'custom:config-template-card'
entities:
  - light.bedroom_lights
  - light.bedside_lamp
  - light.living_room_lights
  - switch.bathroom_light
  - switch.kitchen_lights
  - switch.kitchen_counter_lights
  - switch.dining_room
card:
  type: picture-elements
  image: /local/HA-Floorplan/House-Dark-1.png
  style: |
    ha-card:first-child {
      background: rgba(42, 46, 48, 1)
    }
  elements:
    - type: image
      action: none
      entity: sun.sun
      state_image:
        above_horizon: /local/HA-Floorplan/House-Day-1.png
        below_horizon: /local/HA-Floorplan/transparent_square.png
      style:
        height: 100%
        left: 50%
        mix-blend-mode: lighten
        opacity: '${ states[''sensor.sunlight_opacity''].state }'
        top: 50%
        width: 100%
      tap_action:
        action: none
      hold_action:
        action: none
    - entity: light.bedside_lamp
      hold_action: none
      state_image:
        'off': /local/HA-Floorplan/transparent_square.png
        'on': /local/HA-Floorplan/Bedside Lamp.png
      style:
        left: 50%
        top: 50%
        width: 80%
      tap_action: none
      type: image
    - entity: light.bedroom_lights
      hold_action: none
      state_image:
        'off': /local/HA-Floorplan/transparent_square.png
        'on': /local/HA-Floorplan/Bedroom Lights.png
      style:
        left: 50%
        top: 50%
        width: 100%
      tap_action: none
      type: image
    - entity: light.living_room_lights
      hold_action: none
      state_image:
        'off': /local/HA-Floorplan/transparent_square.png
        'on': /local/HA-Floorplan/Living Room Lights.png
      style:
        left: 50%
        top: 50%
        width: 100%
      tap_action: none
      type: image
    - entity: switch.bathroom_light
      hold_action: none
      state_image:
        'off': /local/HA-Floorplan/transparent_square.png
        'on': /local/HA-Floorplan/Bathroom Lights.png
      style:
        left: 50%
        top: 50%
        width: 100%
      tap_action: none
      type: image
    - entity: switch.kitchen_lights
      hold_action: none
      state_image:
        'off': /local/HA-Floorplan/transparent_square.png
        'on': /local/HA-Floorplan/Kitchen Lights.png
      style:
        left: 50%
        top: 50%
        width: 100%
      tap_action: none
      type: image
    - entity: switch.kitchen_counter_lights
      hold_action: none
      state_image:
        'off': /local/HA-Floorplan/transparent_square.png
        'on': /local/HA-Floorplan/Kitchen Counter Lights.png
      style:
        left: 50%
        top: 50%
        width: 100%
      tap_action: none
      type: image
    - entity: switch.dining_room
      hold_action: none
      state_image:
        'off': /local/HA-Floorplan/transparent_square.png
        'on': /local/HA-Floorplan/Dining Room Light.png
      style:
        left: 50%
        top: 50%
        width: 100%
      tap_action: none
      type: image
    - conditions:
        - entity: light.bedroom_lights
          state: 'on'
      elements:
        - elements: null
          entity: fan.sonoff_1000cc26b7
          hold_action: none
          state_image:
            'off': /local/HA-Floorplan/transparent_square.png
            'on': /local/HA-Floorplan/Bedroom Fan On - Lights.png
          style:
            left: 50%
            top: 50%
            width: 100%
          tap_action: none
          type: image
      type: conditional
    - conditions:
        - entity: light.bedroom_lights
          state: 'off'
      elements:
        - elements: null
          entity: fan.sonoff_1000cc26b7
          hold_action: none
          state_image:
            'off': /local/HA-Floorplan/transparent_square.png
            'on': /local/HA-Floorplan/Bedroom Fan On - Night.png
          style:
            left: 50%
            top: 50%
            width: 100%
          tap_action: none
          type: image
      type: conditional
    - conditions:
        - entity: light.living_room_lights
          state: 'on'
      elements:
        - elements: null
          entity: fan.sonoff_1000cc26b7
          hold_action: none
          state_image:
            'off': /local/HA-Floorplan/transparent_square.png
            'on': /local/HA-Floorplan/Living Room Fan On - Lights.png
          style:
            left: 50%
            top: 50%
            width: 100%
          tap_action: none
          type: image
      type: conditional
    - conditions:
        - entity: light.living_room_lights
          state: 'off'
      elements:
        - elements: null
          entity: fan.sonoff_1000cc26b7
          hold_action: none
          state_image:
            'off': /local/HA-Floorplan/transparent_square.png
            'on': /local/HA-Floorplan/Living Room Fan On - Night.png
          style:
            left: 50%
            top: 50%
            width: 100%
          tap_action: none
          type: image
      type: conditional
    - entity: light.bedside_lamp
      icon: 'mdi:lightbulb'
      style:
        color: white
        left: 61%
        top: 63.5%
      tap_action:
        action: toggle
      type: icon
    - entity: light.bedroom_lights
      icon: 'mdi:lightbulb'
      style:
        color: white
        left: 61.5%
        top: 79.5%
      tap_action:
        action: toggle
      type: icon
    - entity: light.living_room_lights
      icon: 'mdi:lightbulb'
      style:
        color: white
        left: 56.5%
        top: 32.5%
      tap_action:
        action: toggle
      type: icon
    - entity: switch.bathroom_light
      icon: 'mdi:lightbulb'
      style:
        color: white
        left: 44%
        top: 58%
      tap_action:
        action: toggle
      type: icon
    - entity: switch.kitchen_lights
      icon: 'mdi:lightbulb'
      style:
        color: white
        left: 45%
        top: 39%
      tap_action:
        action: toggle
      type: icon
    - entity: switch.kitchen_counter_lights
      icon: 'mdi:led-strip'
      style:
        color: white
        left: 41.5%
        top: 47%
        transform: rotate(-45deg)
      tap_action:
        action: toggle
      type: icon
    - entity: switch.dining_room
      icon: 'mdi:lightbulb'
      style:
        color: white
        left: 44%
        top: 15%
      tap_action:
        action: toggle
      type: icon
    - conditions:
        - entity: sensor.mbfan_speed
          state: 'off'
      elements:
        - elements: null
          entity: fan.sonoff_1000cc26b7
          hold_action:
            action: more-info
          icon: 'mdi:fan-off'
          style:
            color: white
            left: 66.5%
            top: 79.5%
          tap_action:
            action: toggle
          type: icon
      type: conditional
    - conditions:
        - entity: sensor.mbfan_speed
          state: low
      elements:
        - elements: null
          entity: fan.sonoff_1000cc26b7
          hold_action:
            action: more-info
          icon: 'mdi:fan-speed-1'
          style:
            color: white
            left: 66.5%
            top: 79.5%
          tap_action:
            action: toggle
          type: icon
      type: conditional
    - conditions:
        - entity: sensor.mbfan_speed
          state: medium
      elements:
        - elements: null
          entity: fan.sonoff_1000cc26b7
          hold_action:
            action: more-info
          icon: 'mdi:fan-speed-2'
          style:
            color: white
            left: 66.5%
            top: 79.5%
          tap_action:
            action: toggle
          type: icon
      type: conditional
    - conditions:
        - entity: sensor.mbfan_speed
          state: high
      elements:
        - elements: null
          entity: fan.sonoff_1000cc26b7
          hold_action:
            action: more-info
          icon: 'mdi:fan-speed-3'
          style:
            color: white
            left: 66.5%
            top: 79.5%
          tap_action:
            action: toggle
          type: icon
      type: conditional
    - conditions:
        - entity: sensor.lrfan_speed
          state: 'off'
      elements:
        - elements: null
          entity: fan.sonoff_1000cc1eb1
          hold_action:
            action: more-info
          icon: 'mdi:fan-off'
          style:
            color: white
            left: 61.5%
            top: 32.5%
          tap_action:
            action: toggle
          type: icon
      type: conditional
    - conditions:
        - entity: sensor.lrfan_speed
          state: low
      elements:
        - elements: null
          entity: fan.sonoff_1000cc1eb1
          hold_action:
            action: more-info
          icon: 'mdi:fan-speed-1'
          style:
            color: white
            left: 61.5%
            top: 32.5%
          tap_action:
            action: toggle
          type: icon
      type: conditional
    - conditions:
        - entity: sensor.lrfan_speed
          state: medium
      elements:
        - elements: null
          entity: fan.sonoff_1000cc1eb1
          hold_action:
            action: more-info
          icon: 'mdi:fan-speed-2'
          style:
            color: white
            left: 61.5%
            top: 32.5%
          tap_action:
            action: toggle
          type: icon
      type: conditional
    - conditions:
        - entity: sensor.lrfan_speed
          state: high
      elements:
        - elements: null
          entity: fan.sonoff_1000cc1eb1
          hold_action:
            action: more-info
          icon: 'mdi:fan-speed-3'
          style:
            color: white
            left: 61.5%
            top: 32.5%
          tap_action:
            action: toggle
          type: icon
      type: conditional

Any ideas of how to fix this?

1 post - 1 participant

Read full topic

Magic Connect Hub Support

$
0
0

does anyone know if there is support for this or the easiest way to connect it?

https://smile.amazon.com/dp/B081L64LPN/ref=cm_sw_r_cp_apa_i_6jXsFbQ1JRFJ9

It goes by magic connect and hao deng (both apps are the same).
It looks like flux led but that won’t work since each device is bluetooth, with one wifi hub. It also is similar to limitlessled in that there are groups in the hub, but presumably uses flux under the hood. Any advice on how to go about if I need to create anything custom? I’m new to home assistant but am good with python. Thanks everyone and I’m looking forward to getting into the community!

1 post - 1 participant

Read full topic

Can't get curl to work

$
0
0

Very new to Home Assistant and have tried to get this to work in several ways. However I can get other commands to work but curl just doesnt work.
My configuration is:
Installed on notebook running Ubuntu 20.04 using snap.

Home Assistant 0.114.0

Path to configuration.yaml: /var/snap/home-assistant-snap/25

arch x86_64
dev false
docker false
hassio false
installation_type Home Assistant Core
os_name Linux
os_version 5.4.0-42-generic
python_version 3.8.2
version 0.114.0
virtualenv true

I have tried shell_command, command_line etc, and I can get a lot of other things to work like pwd, ls, bash etc but seems like in the env this runs in the /usr/bin is different than the usr/bin on the computer. I got commands to list them both and see that the /usr/bin used by home assistant contains a lot of executables but not curl.

Looking for guidance on how to get this simple thing working as I have tried as many things as I could think of. Again, the issue is how do I get the right executables in the /usr/bin that home assistant uses as it is different than the computers /usr/bin.

Thanks.

1 post - 1 participant

Read full topic

Viewing all 108105 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>