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

Create folders by date strftime()

$
0
0

I want to create folders by date for my camera files.
I accidentally saw that this happened because I use the wrong format.
When I use folliwing:

filename: /media/arlo/{{ now().strftime(“%Y-%m-%d_%H.%M.%S”) }}.jpg
 

the file is located in /media/arlo, but iwant it in folder /media/arlo/06/25.

2 posts - 2 participants

Read full topic


Kamera Bild auf Ipad beim Klingeln

$
0
0

Ich würd gerne wenn an meiner Klingel geklingelt wird das ich dann eine Benachrichtigung auf meinem Ipad bekomme welches an der Wand hängt und gleichzeitig soll auf dem Ipad das Bild der Kamera angezeigt werden.

1 post - 1 participant

Read full topic

HassOS doesn't shutdown properly

$
0
0

Hello. I use last version HassOS generic-x86-64 installed on old DELL WYSE Dx0D Thin client.
It’s works fine. But when I shutdown device it is still running (see photo) and consume power (it’s a problem for me), device still warm and wattmeter show about 17W (when it’s in operate mode consuming energy is 11-15W)
BIOS hasn’t power options.
How to fix my problem? Thank you

Core 2024.6.4
Supervisor 2024.06.0
Operating System 12.4

1 post - 1 participant

Read full topic

I've found a better method to detect if the dashboard is visited on a mobile device

$
0
0

There were a lot of posts about detecting if a mobile device was in use. I hope my discovery could help somebody.

The default one suggest using the device (viewport) width, but that could fail easily when you open 2 (or 3) windows side-by-side on a computer.

Some suggest using custom cards or long deprecated custom frontend elements. This might be fine but can be done better.

The new(?) method for me was to use the “screen” condition, but not the screen width. After looking at the configs for the “screen” condition more closely, I’ve found a high degree of similarity between it and the CSS media queries. I then looked online and found this and tried it on my dashboard, which resulted in this discovery.

# for mobile device
type: conditional
conditions:
  - condition: screen
    media_query: (pointer:coarse)
card:
    ...
# for computer
type: conditional
conditions:
  - condition: screen
    media_query: (pointer:fine)
card:
    ...

unfortunately this could confuse the visual editor but it certainly works. I used this to decide if a URL in the action should be a deep-link or not.

1 post - 1 participant

Read full topic

Lutron Caseta - wall dimming switch

$
0
0

I have been running Lutron switches for a long time without any issues…$$$$ but I believe worth it.

I have a automation/script that uses the pico remote and I can see which button on the switch is push/held …
I have recently added a light level control to the office which is not using the pico remote only the wall dimming switch and do not see where I can get the button pushed information. The office light control: How do you modify the value of a sensor attribute - #9 by eralbright

I’m looking for: (this uses the pico to control two lights. The upper/lower is on/off for one switch and the on/off is on/off for the other and the stop is toggle both)

alias: Art Light off
description: ""
trigger:
  - platform: device
    device_id: 2f92ace13caf2a43b0c12ea2d7231d0e
    domain: lutron_caseta
    type: press
    subtype: lower
condition: []
action:
  - type: turn_off
    device_id: 789099c4b7d01e9f2678f889450cd87f
    entity_id: 216e86d0b5c1b38d221b68e52af63b5a
    domain: light
mode: single

but from the wall switch.
Does it exist - is there a way to get this information?

1 post - 1 participant

Read full topic

Browser_mod.popup showing Cerma stream bad size

$
0
0

Ho there,

I am using the browser_mod.popup to show my camera feed on my tblet when someone rings, in full screen, but the bottom of the picture is missing …
any possibility to set the size, or allow “scrolling down” to show complete picture ?

scrolling down, but still missing the bottom of the screen :

… and here is what the entity is supposed to show :

Many Thanks !!

1 post - 1 participant

Read full topic

Anyone used Home Assistant as a feed to MQTT Broker?

$
0
0

I have been getting Home Assistant up and running for the last 6 months and despite having double the memory and high speed SSD storage and 10x cpu it uses - I have been overwhelming it.

So after 3 rebuilds and pairing hundreds of zigbee devices many many times trying something new.

To avoid ‘operator error’ building a completely vanilla/default Home Assistant on Home Assistant green using an SMLight POE Ethernet coordinator (avoid USB/power issues)

And all it will do is zigbee2MQTT with supporting Mosquito Broker both from the Home Assistant Add ons.

Oh had to install the Official Add On File editor so I could configure zigbee2MQTT.

I have ordered a new smlight coordinator to ensure nothing messes with it.

Then pair in all the Router zigbee devices then the endpoints.

Hopefully this will be a stable install.

I have a Home Assistant running in a vm and will use that for zwave - feeding a built in MQTT broker. I have striped everything out of this install except for zwave JS and the current, failing zigbee2MQTT which I will shutdown as soon as I bring up the new one.

Run up a Node Red on a Docker then link in the MQTT Brokers and I have a command and control setup over everything.

For third party integrations I can use an old Homey and a few spare Habitat’s all of which can be configured to feed one of the MQTT Brokers. This way I can spread out the loading between multiple hubs using the best/most reliable integration to all the third party systems in the house.

And here is the question, if I use a Home Assistant integration is there a way to have all the attached devices store state and control in an MQTT Broker to keep the loading low on the Home Assistant ?

1 post - 1 participant

Read full topic

Automation on home assistant restart

$
0
0

Hi, I have and integration with a bug and while I wait for a fix I need and automation that every time I restart home assistant should trigger a switch.

That’s what I tried but do not work. If I try the automation manually the switch turn on but not when the system restart. There is another way to trigger and automation on HA restart.

Thanks in advance.

alias: Activar oscilación ventilador salón
description: >-
  Corrige el error de no haber icono oscilación en la tarjeta del ventilador del
  salón
trigger:
  - platform: homeassistant
    event: start
condition: []
action:
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - service: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: switch.ventilador_salon_horizontally_oscillating
mode: single

3 posts - 3 participants

Read full topic


HPilo [Errno 111] Connection refused

$
0
0

Hi, I am trying to get some sensor information from HP Ilo5 into my Homeassistant.
After adding the example code in the configuration.yaml, change the credentials and the home assistant restart, I get:

hp_ilo: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1291, in async_device_update
    await hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hp_ilo/sensor.py", line 167, in update
    ilo_data = getattr(self.hp_ilo_data.data, self._ilo_function)()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/hpilo.py", line 1045, in get_embedded_health
    return self._info_tag('SERVER_INFO', 'GET_EMBEDDED_HEALTH', 'GET_EMBEDDED_HEALTH_DATA',
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/hpilo.py", line 739, in _info_tag
    header, message = self._request(root)
                      ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/hpilo.py", line 238, in _request
    self._detect_protocol()
  File "/usr/local/lib/python3.12/site-packages/hpilo.py", line 278, in _detect_protocol
    header, data = self._communicate(b'<RIBCL VERSION="2.0"></RIBCL>', ILO_HTTP, save=False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/hpilo.py", line 410, in _communicate
    sock = self._get_socket()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/hpilo.py", line 392, in _get_socket
    raise err
hpilo.IloCommunicationError: Error connecting to 192.168.10.23 port 443: [Errno 111] Connection refused

When approaching the ILO from a web browser, it is all fine, so I guess there is no firewall blocking anything? I can’t find anything on the web.

I am out of options/knowledge…

Thanks!
Bas

2 posts - 2 participants

Read full topic

Media control idea

$
0
0

I need to know if I am crazy in this idea i have.
I have kodi running on my shield in the livingroom, it is able to access my self hosted iptv i setup via ersatztv.
I can see the channels in home assistant via the kodi integration but it only shows what is currently playing in either a grid or a list.
I saw the recent post about the epg setup in home assistant someone did and was wondering if it would be possible to pull the xmltv and m3u files ersatztv generates and display those in an epg in home assistant that when tapped on a phone or tablet would call that channel on the kodi instance on the shield?

1 post - 1 participant

Read full topic

Lever on/off instead run

$
0
0

Hi to all,
in the attached image you can see the on/off lever for the entity and “run” for the script. Is it possible to have a lever also for the script and not “run”?
Thank you.

Screenshot 2024-06-25 164407

1 post - 1 participant

Read full topic

Duplicate entities from sensors moved to different ZB coord

Doing different thins in script, depending on who called it

$
0
0

Hey hey
Ive had an automation that i run when my door is locking and when its locked.
It turns on a light (outside), That flashes red for example if any window or door is opened, or bleu if my robot vacuum didnt get fresh water this day.
This works perfectly fine so far, but the problem is that light is outside.
If the light doesnt flash green (what signalisizes everything is ok) I have to unlock again and go inside again.
So I got a signal light for inside and want to add the same thing as outside inside my house.
If the door is unlocking (at a specified time) I want to have the same thing as outside.

I dont want to use this inside an automation, too. Because this would mean doubling the code for unlocking and locked.
So I think have a script is best way here.
I did create the script so far, but always turning on both lamps, which isnt exactly what I want.

If the door in UNLOCKING, I want to use the inside lamp.
If the door is LOCKING, I want to use the outside lamp (or lamps in nearer future).

So I suppose I need a field and call the script giving it the field value I can react to.
So I can keep my tests (light on test, robot vaccum test, and so on) and depending on the field value I turn the specific light on.

Am I correct with this way? Or is there any better solution?
And can someone give me a hint how to use the fields?

1 post - 1 participant

Read full topic

A newly added Third Reallity Button controls one of my aqara plugs without any settings

$
0
0

Heyhey
Some minutes ago I brought a thirdreallity smart button into my zigbee network.
RIght after adding it, without any changes made, a single press on this button turn on one of my aqara plugs, a double press turns it off.
This aqara plug is the nearest zigbee device to my button.
Because I obviously dont want this, I did reset the button and paired again - same result.
So I did reset it again and paired it next to my zigbee dongle (skyconnect).
Now it works perfectly fine.
What is wrong here? Why I get this?

2 posts - 2 participants

Read full topic

Zwave adapter disappears after updating Zwave JS UI

$
0
0

Sometimes when updating the Zwave JS UI add-on (but not always), my Aeotec Zstick disappears forcing me to reboot the HA VM.

Here is a screenshot of lsusb before and after updating Zwave JS UI. The /dev/ttyACM0 device disappears as well. After rebooting it shows up in both places and everything functions normally. Probably happens ~50% of the time I update Zwave JS UI.

This is a Home Assistant VM running on Proxmox with the dongle passed through.

Any ideas?

1 post - 1 participant

Read full topic


ZHA custom quirk to work with Tuya TS0601 TZE204_laokfqwu occupancy sensor

$
0
0

I recently bought a ZigBee MmWave Human Presence Motion Sensor With Luminance/Distance Detection from AliExpress. ZHA did not recognize this model so I had no sensors. Being very new to HA but with some coding experience and after a lot of trial and error I was able to come up with a quirks file that works. Heavily based on the this post -
https://github.com/zigpy/zha-device-handlers/pull/1928

Not sure if this is the right place to post it, but I thought it might be useful for others struggling with the same issue.


import math
from typing import Dict, Optional, Tuple, Union

from zigpy.profiles import zgp, zha
from zigpy.quirks import CustomDevice
import zigpy.types as t
from zigpy.zcl import foundation
from zigpy.zcl.clusters.general import (
    AnalogInput,
    AnalogOutput,
    Basic,
    GreenPowerProxy,
    Groups,
    Identify,
    Ota,
    Scenes,
    Time,
)
from zigpy.zcl.clusters.measurement import (
    IlluminanceMeasurement,
    OccupancySensing
)
from zigpy.zcl.clusters.security import IasZone

from zhaquirks import Bus, LocalDataCluster, MotionOnEvent
from zhaquirks.const import (
    DEVICE_TYPE,
    ENDPOINTS,
    INPUT_CLUSTERS,
    MODEL,
    MOTION_EVENT,
    OUTPUT_CLUSTERS,
    PROFILE_ID,
)

from zhaquirks.tuya import (
    NoManufacturerCluster,
    TuyaLocalCluster,
    TuyaNewManufCluster,
)
from zhaquirks.tuya.mcu import (
    # TuyaDPType,
    DPToAttributeMapping,
    TuyaAttributesCluster,
    TuyaMCUCluster,
)


class TuyaMmwRadarSelfTest(t.enum8):
    """Mmw radar self test values."""
    TESTING = 0
    TEST_SUCCESS = 1
    TEST_FAILURE = 2
    OTHER = 3
    COMM_FAULT = 4
    RADAR_FAULT = 5

class TuyaOccupancySensing(OccupancySensing, TuyaLocalCluster):
    """Tuya local OccupancySensing cluster."""

class TuyaIlluminanceMeasurement(IlluminanceMeasurement, TuyaLocalCluster):
    """Tuya local IlluminanceMeasurement cluster."""

class TuyaMmwRadarSensitivity(TuyaAttributesCluster, AnalogOutput):
    """AnalogOutput cluster for sensitivity."""

    def __init__(self, *args, **kwargs):
        """Init."""
        super().__init__(*args, **kwargs)
        self._update_attribute(
            self.attributes_by_name["description"].id, "Sensitivity"
        )
        self._update_attribute(self.attributes_by_name["min_present_value"].id, 1)
        self._update_attribute(self.attributes_by_name["max_present_value"].id, 9)
        self._update_attribute(self.attributes_by_name["resolution"].id, 1)

class TuyaMmwRadarMinRange(TuyaAttributesCluster, AnalogOutput):
    """AnalogOutput cluster for min range."""

    def __init__(self, *args, **kwargs):
        """Init."""
        super().__init__(*args, **kwargs)
        self._update_attribute(
            self.attributes_by_name["description"].id, "Min range"
        )
        self._update_attribute(self.attributes_by_name["min_present_value"].id, 0)
        self._update_attribute(self.attributes_by_name["max_present_value"].id, 950)
        self._update_attribute(self.attributes_by_name["resolution"].id, 10)
        self._update_attribute(
            self.attributes_by_name["engineering_units"].id, 118
        )  # 31: meters

class TuyaMmwRadarMaxRange(TuyaAttributesCluster, AnalogOutput):
    """AnalogOutput cluster for max range."""

    def __init__(self, *args, **kwargs):
        """Init."""
        super().__init__(*args, **kwargs)
        self._update_attribute(
            self.attributes_by_name["description"].id, "Max range"
        )
        self._update_attribute(self.attributes_by_name["min_present_value"].id, 0)
        self._update_attribute(self.attributes_by_name["max_present_value"].id, 950)
        self._update_attribute(self.attributes_by_name["resolution"].id, 10)
        self._update_attribute(
            self.attributes_by_name["engineering_units"].id, 118
        )  # 31: meters

class TuyaMmwRadarDetectionDelay(TuyaAttributesCluster, AnalogOutput):
    """AnalogOutput cluster for detection delay."""

    def __init__(self, *args, **kwargs):
        """Init."""
        super().__init__(*args, **kwargs)
        self._update_attribute(
            self.attributes_by_name["description"].id, "Detection delay"
        )
        self._update_attribute(self.attributes_by_name["min_present_value"].id, 000)
        self._update_attribute(self.attributes_by_name["max_present_value"].id, 20000)
        self._update_attribute(self.attributes_by_name["resolution"].id, 100)
        self._update_attribute(
            self.attributes_by_name["engineering_units"].id, 159
        )  # 73: seconds

class TuyaMmwRadarFadingTime(TuyaAttributesCluster, AnalogOutput):
    """AnalogOutput cluster for fading time."""

    def __init__(self, *args, **kwargs):
        """Init."""
        super().__init__(*args, **kwargs)
        self._update_attribute(
            self.attributes_by_name["description"].id, "Fading time"
        )
        self._update_attribute(self.attributes_by_name["min_present_value"].id, 0000)
        self._update_attribute(self.attributes_by_name["max_present_value"].id, 200000)
        self._update_attribute(self.attributes_by_name["resolution"].id, 1000)
        self._update_attribute(
            self.attributes_by_name["engineering_units"].id, 159
        )  # 73: seconds

class TuyaMmwRadarTargetDistance(TuyaAttributesCluster, AnalogInput):
    """AnalogInput cluster for target distance."""

    def __init__(self, *args, **kwargs):
        """Init."""
        super().__init__(*args, **kwargs)
        self._update_attribute(
            self.attributes_by_name["description"].id, "Target distance"
        )
        self._update_attribute(
            self.attributes_by_name["engineering_units"].id, 31
        )  # 31: meters



class TuyaMmwRadarCluster(NoManufacturerCluster, TuyaMCUCluster):
    """Mmw radar cluster."""
    attributes = TuyaMCUCluster.attributes.copy()
    attributes.update(
        {
            # ramdom attribute IDs
            0xEF01: ("occupancy", t.uint32_t, True),
            0xEF02: ("sensitivity", t.uint32_t, True),
            0xEF03: ("min_range", t.uint32_t, True),
            0xEF04: ("max_range", t.uint32_t, True),
            0xEF06: ("self_test", TuyaMmwRadarSelfTest, True),
            0xEF09: ("target_distance", t.uint32_t, True),
            0xEF65: ("detection_delay", t.uint32_t, True),
            0xEF66: ("fading_time", t.uint32_t, True),
            0xEF67: ("cli", t.CharacterString, True),
            0xEF68: ("illuminance", t.uint32_t, True),
        }
    )

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        1: DPToAttributeMapping(
            TuyaOccupancySensing.ep_attribute,
            "occupancy",
            # dp_type=TuyaDPType.BOOL,
        ),
        2: DPToAttributeMapping(
            TuyaMmwRadarSensitivity.ep_attribute,
            "present_value",
            # dp_type=TuyaDPType.VALUE,
        ),
        3: DPToAttributeMapping(
            TuyaMmwRadarMinRange.ep_attribute,
            "present_value",
            # dp_type=TuyaDPType.VALUE,
            endpoint_id=2,
            #converter=lambda x: x / 100,
            #dp_converter=lambda x: x * 100,
        ),
        4: DPToAttributeMapping(
            TuyaMmwRadarMaxRange.ep_attribute,
            "present_value",
            # dp_type=TuyaDPType.VALUE,
            endpoint_id=3,
            #converter=lambda x: x / 100,
            #dp_converter=lambda x: x * 100,
        ),
        6: DPToAttributeMapping(
            TuyaMCUCluster.ep_attribute,
            "self_test",
            # dp_type=TuyaDPType.ENUM,
        ),
        9: DPToAttributeMapping(
            TuyaMmwRadarTargetDistance.ep_attribute,
            "present_value",
            #converter=lambda x: x / 100,
            # dp_type=TuyaDPType.VALUE,
        ),
        101: DPToAttributeMapping(
            TuyaMmwRadarDetectionDelay.ep_attribute,
            "present_value",
            # dp_type=TuyaDPType.VALUE,
            converter=lambda x: x * 100,
            dp_converter=lambda x: x // 100,
            endpoint_id=4,
        ),
        102: DPToAttributeMapping(
            TuyaMmwRadarFadingTime.ep_attribute,
            "present_value",
            # dp_type=TuyaDPType.VALUE,
            converter=lambda x: x * 100,
            dp_converter=lambda x: x // 100,
            endpoint_id=5,
        ),
        103: DPToAttributeMapping(
            TuyaIlluminanceMeasurement.ep_attribute,
            "measured_value",
            # dp_type=TuyaDPType.VALUE,
            converter=lambda x: int(math.log10(x) * 10000 + 1) if x > 0 else int(1),
        ),
    }

    data_point_handlers = {
        1: "_dp_2_attr_update",
        2: "_dp_2_attr_update",
        3: "_dp_2_attr_update",
        4: "_dp_2_attr_update",
        6: "_dp_2_attr_update",
        9: "_dp_2_attr_update",
        101: "_dp_2_attr_update",
        102: "_dp_2_attr_update",
        103: "_dp_2_attr_update",
    }

class TuyaMmwRadarOccupancy(CustomDevice):
    """Millimeter wave occupancy sensor."""

    signature = {
        #  endpoint=1, profile=260, device_type=81, device_version=1,
        #  input_clusters=[0, 4, 5, 61184], output_clusters=[25, 10]
        "models_info": [
            ("_TZE200_ar0slwnd", "TS0601"),
            ("_TZE200_sfiy5tfs", "TS0601"),
            ("_TZE200_mrf6vtua", "TS0601"),
            ("_TZE200_ztc6ggyl", "TS0601"),
            ("_TZE204_ztc6ggyl", "TS0601"),
            ("_TZE204_laokfqwu", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaNewManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            242: {
                # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
                # input_clusters=[]
                # output_clusters=[33]
                PROFILE_ID: zgp.PROFILE_ID,
                DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }


    replacement = {
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.OCCUPANCY_SENSOR,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaMmwRadarCluster,
                    TuyaIlluminanceMeasurement,
                    TuyaOccupancySensing,
                    TuyaMmwRadarTargetDistance,
                    TuyaMmwRadarSensitivity,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.COMBINED_INTERFACE,
                INPUT_CLUSTERS: [
                    TuyaMmwRadarMinRange,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.COMBINED_INTERFACE,
                INPUT_CLUSTERS: [
                    TuyaMmwRadarMaxRange,
                ],
                OUTPUT_CLUSTERS: [],
            },
            4: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.COMBINED_INTERFACE,
                INPUT_CLUSTERS: [
                    TuyaMmwRadarDetectionDelay,
                ],
                OUTPUT_CLUSTERS: [],
            },
            5: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.COMBINED_INTERFACE,
                INPUT_CLUSTERS: [
                    TuyaMmwRadarFadingTime,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }

1 post - 1 participant

Read full topic

Problem connecting with Duckdns https

$
0
0

Hello. I’m having a problem almost every day where my connection to home assistant using https through duckdns fails. I can connect locally, but through the DNS name I can’t. I don’t change anything and after an hour or so, it starts working again. Sometimes it takes much more time. I’m using port forwarding on my router, and it seems it’s reaching. Could it be the duckdns that is failing? I’m not sure how to diagnose.

2 posts - 2 participants

Read full topic

Input text box on dashboard and automation for use with openhasp message box

$
0
0

Text box on a Home Assistant dashboard.
For use of sending text to wall panels by imputing text on a HA dashboard input text box or using “input text: set” as a action in a automation.
openhasp
Or
Openhasp HA community forum page


Using “input text: set” as a action in a automation.

I love using our panels and the feature we get the most use of is the “message box” { I call them pop ups } for notifications and reminders. They Come in handy because when Barbara is working she does not pay much attention to her phone.
Turning on backlight and A pop up on the openhasp screen between two of her computer monitors gets her attention.

How to:

Using Helpers create a input Text box
{input_text.HA_panel_popup_text_box}
to put on HA dash board So I can easily display a pop up message on All dash boards. The automation then deletes the Message box when the Text box is cleared.

First Create A text box using Yaml or Helpers and add to a Dashboard.


Automation:
This automation will use the “text” from the text box and Publish to panel(s) and turn on the back light to all panels.
In the payload_template you will see

 {"page":0,"id":75,"obj":"msgbox","bg_color":"white","text_color":"Red","text":"
        {{ states("input_text.ha_panel_popup_text_box") }}
        ","options":["Close"]}

,Page"0"` is all pages and “id”:75 is the ID of the Message box so if you have other message boxes give them another ID so the will not be overwritten or cleared by this automation.

In the last part of the automation will Delete the message box (popup) when the Text box is empty

  - condition: state
    entity_id: input_text.ha_panel_popup_text_box
    state: ""
  - service: mqtt.publish
    data:
      topic: hasp/plates/command/p0b75.delete

FULL AUTOMATION

alias: Openhasp POPup text box
description: >-
  display popup on all openhasp panels the Dashboard text box data. Clear popup
  if text box is Empty or cleared. popupID#75
trigger:
  - platform: state
    entity_id:
      - input_text.ha_panel_popup_text_box
    id: text
    enabled: true
condition: []
action:
  - service: mqtt.publish
    data:
      topic: hasp/plates/command/jsonl
      payload_template: >-
        {"page":0,"id":75,"obj":"msgbox","bg_color":"white","text_color":"Red","text":"
            {{ states("input_text.ha_panel_popup_text_box") }} ","options":["Close"]}
  - type: turn_on
    device_id: 88b53314416b4ce885e73c349b11de1b
    entity_id: light.desk1_backlight
    domain: light
    brightness_pct: 100
  - type: turn_on
    device_id: ff2aa76f6ac729f1e9e243fa22ce23e1
    entity_id: light.plate35_backlight
    domain: light
    brightness_pct: 100
  - type: turn_on
    device_id: e8173c788aa326e57adbc645b2d954c8
    entity_id: light.desk_backlight
    domain: light
  - condition: state
    entity_id: input_text.ha_panel_popup_text_box
    state: ""
  - service: mqtt.publish
    data:
      topic: hasp/plates/command/p0b75.delete
mode: single

Automation to automatically Clear Text box in Homeassistant when someone Closes message box popup.

alias: clear popup box
description: >-
  Deletes Message box when "Close" is selected on any Openhasp Panel message
  box.
trigger:
  - platform: mqtt
    topic: hasp/desk1/state/p0b75
    payload: "{\"event\":\"up\",\"val\":0,\"text\":\"Close\"}"
  - platform: mqtt
    topic: hasp/desk/state/p0b75
    payload: "{\"event\":\"up\",\"val\":0,\"text\":\"Close\"}"
  - platform: mqtt
    topic: hasp/plate35/state/p0b75
    payload: "{\"event\":\"up\",\"val\":0,\"text\":\"Close\"}"
condition: []
action:
  - service: input_text.set_value
    data:
      value: ""
    target:
      entity_id: input_text.ha_panel_popup_text_box
mode: single

Here is a little more about my openhasp wall panel setups
Openhasp on a Lanbon L8 and WT32-SC01 Plus

1 post - 1 participant

Read full topic

Navigation errors when a dashboard URL no longer includes lovelace

New to HA what do I need to use Everything Presence Lite Presense Sensor

$
0
0

Hi

I am elementary. I ordered the HA Green, and it works great. I have all my Wi-Fi devices, and they all work. I want a good presence sensor like the Everything Presence Lite Presence Sensor.

Green sells add-on, so what do I purchase for the Green to communicate with the Everything Presence Lite Presence Sensor?

Thx

6 posts - 2 participants

Read full topic

Viewing all 107356 articles
Browse latest View live


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