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

New device (Zooz RGBW dimmer ZEN31) only partially working (no switches)

$
0
0

@djalden wrote:

Hi,
I’ve obtained a Zooz RGBW dimmer (ZEN31) and written an XML config file for it. I can add it to my HA, but all I get are the sensors, no switches/lights. I’m running HA 0.106.5. My OZW_Log.txt file is available from:

https://pastebin.com/kbE4yiDG

Any ideas?

Posts: 1

Participants: 1

Read full topic


Home Assistant Static IP

$
0
0

@Simone_Valmacco wrote:

Hi, I’m running my Home assistant server on a Debian 10 Virtual Machine (hosted on a Proxmox server).
I’m having trouble setting up a static IP for my Home assistant instance.
I’ve tryed the usb key config method but it doesn’t work. How can I do that?
Thank you very much!
Best regards

Simone
P.S. I know it’s easy to set up a DHCP reservation on the router but I want totry to set the ip directly on the OS.

Posts: 1

Participants: 1

Read full topic

Using MQTT Discovery for buttons

$
0
0

@pmansvelder wrote:

Hello people,

I am using HA for my house, with Arduino Mega controllers on a wired network as endpoints for the actual control entities:

  • switches for relays
  • lights for both relays and dimmers
  • covers to control my sunscreens
  • locks to control my door locks
  • binary sensors for my pir sensors and magnet switches

All of these I have managed to integrate with the MQTT discovery mechanism (as do the Tasmotized wifi controllers I use), with a lot of trial and error. I have got it working now, which means I only have to setup my controller, and all the items (switches, lights, binary_sensors, covers, locks) are generated automatically in HA.
The only item on my list are the buttons I use to control the lights in my house. I could use a binary sensor, but that only gives me on/off behaviour. I also want things like ‘long press’ to be exposed.
At the moment I use my automations to read from a MQTT topic, while my Arduino code sends a ‘button0’ or ‘button0_long’ message, but I saw in the MQTT discovery documentation there is also a ‘device trigger’ (https://www.home-assistant.io/integrations/device_trigger.mqtt/) method I could use.
Reading the docs I am at a loss: the way to generate this seems similar to the other items, but I cannot understand how it works: Do I set up a ‘device trigger’ for each type of button press I want first, and then send output on the topic I just defined? And what command should I output then? In the setup I give the following config:

{"automation_type":"trigger","topic":"domus/test/uit/button","type":"button_short_press","subtype":"button_1","dev":{"ids":["domus_test_json"],"cns":[["ip","192.168.178.79"],["mac","F0:01:02:03:04:4B"]],"name":"Domus Mega Test","mdl":"Mega 2560","mf":"Arduino"}}

But nothing gets defined when I look at the integrations screen, where all the other items do show up.
What would be helpful is an example of both the setup of the discovery phase and an automation which uses this ‘device trigger’.

Thanks for all the help in advance,

Peter Mansvelder

Posts: 1

Participants: 1

Read full topic

Managing logs for specific devices

$
0
0

@jurgenweber wrote:

at night, I turn a lot of our house off with ZWave devices, this has great results on my power bill. This means other devices then become.

Example; I turn off my office desk, this has a Bose SoundTouch on it which is also connected to HASS. My logger config is:

# https://home-assistant.io/components/logger/
logger:
  default: warn
  logs:
    # homeassistant.components.alert: info
    homeassistant.components.automation: info
    homeassistant.components.daikin: error
    pydaikin: error
    urllib3.connectionpool: critical
    homeassistant.components.http: info
    aiohttp: info
    homeassistant.components.media_player.soundtouch_20_soundtouch: critical

but I still get critical errors… Can I turn the errors off somehow? An example error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.219', port=8090): Max retries exceeded with url: /now_playing (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1cb64a250>: Failed to establish a new connection: [Errno 113] Host is unreachable'))

its just a little noisy. Can I move them into a different file even?

Posts: 1

Participants: 1

Read full topic

Garage Door and wired I/O expander for RPI4

$
0
0

@Kosy wrote:

Hello You all.

I have RPI4 With HA Core (0.106.5) that will be sitting in a attic. I have also garage. I am really determined to control them by wire because this is most important (country) house entrance.
Distance between these two points is about 15-20 m. For that I decided to use Waveshare MCP23017, but of course distance is to great. Sice I have Nice Spido drive that has limit switches i decided to monitor 2 binary sensors to get 3 states (closes, opened, unknown). Drive has “start-stop-reverse logic” input and I am fine with that.
Also i would like to achieve really minimalistic thing: one icon representing state of gate, name and one switch.
After reading this topic i noticed that it is closest to my desired but i was not able to control button image with sensor state.
After reading this other solutions i had also problem with setting this cover as switch with “toggle script”
Finally i used this solution, but it has minimum of two buttons. I can live with that but it is arguing with logic of gate driver input (“start-stop-reverse logic” = toggle).
Now it looks like this:

cover:
  - platform: template
    covers:
      garage1_door:
        friendly_name: "DRZWI LEWE"
        icon_template: >
          {% if is_state('binary_sensor.garage_door_13', 'on') %}
            mdi:garage
          {% elif is_state('binary_sensor.garage_door_12', 'on') %}
            mdi:garage-open
          {% else %}
            mdi:garage-alert
          {% endif %}
        open_cover:
          service: script.garruchlewe
        close_cover:
          service: script.garruchlewe
      garage0_door:
        friendly_name: "DRZWI PRAWE"
        icon_template: >
          {% if is_state('binary_sensor.garage_door_15', 'on') %}
            mdi:garage
          {% elif is_state('binary_sensor.garage_door_14', 'on') %}
            mdi:garage-open
          {% else %}
            mdi:garage-alert
          {% endif %}
        open_cover:
          service: script.garruchprawe
        close_cover:
          service: script.garruchprawe

I know that in practice this topic will is, a little bit about hardware. But I want to keep this expander in garage because i will be adding few things and I don`t want to drag all those wires to attic itself. I do not want to use any complicated system such as arduino as I/O communicating with RPI by RS and that is because I am new to pretty much all of it.

  1. Is there any other wired solution ? - If no I will just use P82B715P - I2C expander.
  2. Does anyone know how to change Input/Output direction for i2c?
  3. Does anyone have an idea how to achieve what I made with cover.template but in button minimalistic form ?

PS Thanks to my friend “SZU” that lured me into this HA community :slight_smile:

Posts: 1

Participants: 1

Read full topic

UPNP sharp tv entity Id already exists

$
0
0

@si458 wrote:

Hi all,

Hoping to get some help/advise

I have a sharp tv which gets automatically detected by UPNP/DLNA-DMR when started, however it works the first time I restart my homeassistant without any issues.

BUT then if I switch off my tv, let it change to unavailable in homeassistant then switch my tv back on, it never works again just stays as unavailable?

I have checked the logs and it seems to show that the entity id already exists so I understand why It won’t add another entity but don’t understand why it won’t change the status of existing entity?

The other problem I have is I can’t setup manual DLNA-dmr in my config.xml file because from what I have checked/found out using a upnp client on my laptop,
every time the tv turns on, the upnp port changes? So I can’t set a static xml config in config.xml?

Is the anything I can do to fix this issue or am I stuck?

2020-03-15 22:59:08 INFO (MainThread) [homeassistant.components.discovery] Found new service: dlna_dmr {'host': '192.168.23.242', 'port': 54388, 'ssdp_description': 'http://192.168.23.242:54388/aw', 'name': 'MySharpTV', 'model_name': 'MStarDMR', 'model_number': '0.0', 'serial': '000000', 'manufacturer': 'MStar', 'udn': 'uuid:305208a4-1dd2-11b2-9607-702ed9393890', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaRenderer:1'}
2020-03-15 22:59:08 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.dlna_dmr
2020-03-15 22:59:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 425, in _async_add_entity
    raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: media_player.mysharptv. Platform dlna_dmr does not generate unique IDs

Posts: 1

Participants: 1

Read full topic

Different coloured lights on different days

$
0
0

@HenryV wrote:

Hello,

I have some Hue lights and use an automation to have different coloured lights if its day or night. I would like to have a different coloured light during the day for each week day so something like

if between 06:00 and 00:10
and day = Mon
colour = yellow
or = day = Tue
colour = red

ect…

I’m hoping there is a way of using the if statement and Time condition in the automations but I’m not sure how to do it.

my current automation is:

- id: '001'
  alias: Hall Lights On Day
  description: ''
  trigger:
  - entity_id: binary_sensor.hue_motion_sensor_1_motion
    platform: state
    to: 'on'
  condition:
  - below: '100'
    condition: numeric_state
    entity_id: sensor.hue_motion_sensor_1_light_level
  - condition: and
    conditions:
    - after: 06:00
      before: 00:00
      condition: time
  action:
  - alias: ''
    data:
      brightness: 200
      rgb_color:
      - 255
      - 240
      - 240
    entity_id: light.hall_upstairs_3
    service: light.turn_on
  - data:
      brightness: 200
      rgb_color:
      - 255
      - 240
      - 240
    entity_id: light.hall_downstairs_3
    service: light.turn_on

Posts: 4

Participants: 2

Read full topic

Hassioaddon zwave2mqtt-amd64:4f1a80a

$
0
0

@pullb0x wrote:

Is there an easy way to load the zwave2mqtt-amd64:4f1a80a image instead of zwave2mqtt-amd64:0.5.0.
Essentially there are fixes in there I need.

Posts: 1

Participants: 1

Read full topic


Help templating locks

$
0
0

@mattstein111 wrote:

Coming over from another Home Automation platform, I used to use a Virtual Lock, and gang together the states of all of my Z-Wave locks. I’m been toying with a Template Lock, but I’m not sure this is the right path.

Essentially, I want to present a lock called “Door Locks” to the UI, and show it as locked if all locks are locked, but unlocked if any are unlocked.

Am I on the right path? Anyone have an example of such a thing?

Posts: 3

Participants: 2

Read full topic

Friendly_name is being reverted when set via states API

$
0
0

@synapse wrote:

Hi Everyone,

I’m setting up a Node-RED flow to set the friendly_name of my SeventeenTrack packages (because It really clutters up the UI when they’re all prefixed with 'Seventeentrack Package: ')

Currently I’m trying to do this via a POST to the HTTP States API - something like:

POST /api/states/sensor.seventeentrack_package_mypackage
{"state":"[Entity's Current State]","attributes":{"friendly_name":"mypackage"}}

The call initially succeeds and updates the name shown in the UI, but it reverts about 10 seconds later. I’m also not seeing any changes being made to the entities in .storage/core.entity_registry, which are made when changing the Friendly Name directly via the UI (which does persist).

Has anyone got any ideas as to how I can get the changes to persist? Also open to any alternate ways of doing this (which don’t involve manually setting the name in the UI)

I’ve also tried using the same method for the Coronavirus sensors, which also revert, so it doesn’t appear to be limited to one integration.

Thanks!

Posts: 2

Participants: 2

Read full topic

A lot of automations.yaml

$
0
0

@putte99 wrote:

Hi.

I have add some button trigger to do stuff / toggel light…
But is lot of them now… For each tigger I add automations…

Is it other way to add tigger for butten events?

Posts: 5

Participants: 3

Read full topic

Automation not working can you give me some help?

$
0
0

@scoubi59 wrote:

hello, i’m a begginer with HA, i make some automation who’s work but this one doesn’t want to work.
can you help me ?

  • alias: ‘OuvertureDadou’

    trigger:

    - platform: state
    
      entity_id: binary_sensor.fibaro_system_fgms001_motion_sensor_sensor
    
      from: 'off'
    
      to: 'on'
    

    condition:

      condition: and
    
      conditions:
    
       - condition: state
    
         entity_id: cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_5
    
         state: close
    
       - condition: state
    
         entity_id: binary_sensor.fibaro_system_fgms001_motion_sensor_sensor
    
         state: 'On'
    
       - condition: time
    
         after: '05:00:00'
    
         before: '07:30:00'
    

    action:

    • service: cover.set_cover_position

      data:

      entity_id: cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_5

      position: 30

thanks for your help

Posts: 4

Participants: 3

Read full topic

Global Variables (House Statuses) and custom scripting

$
0
0

@azevenhuizen wrote:

Hi all,

Pretty new to HA and trying to get my way around the automation/scene/scripting stuff.
I am used to create lua scripts or write some python code, but yaml sequences is quite new to me.

For starters I would like to set a (global) variable to hold the state of my house.
Sleeping/Home/Away/Holiday/etc. Based on those states I used to fire or hold a lot of automations.

  • How can I create and set global variables?
  • Also how to create some simple IF_ELSE, AND_OR scripts? It seems the automations are quite limited to at least different to what I know, compared to lua and python.

Posts: 9

Participants: 6

Read full topic

Avoiding 'unavailable' in sensor templating

$
0
0

@mdfoto wrote:

Hi,

I hope somebody can help me with the following issue. I control my lights based on outside light levels using a NodeMCU with ESPhome on it. A simple setup using a LDR. Before this setup, i done it with the same LDR and MQTT (non ESPHome). The LDR gives a value and with the template sensor i do some math(own mapping calculation) stuff to set the light brightness level.
With my previous setup (MQTT) i didn’t had any problems. With my new setup (ESPHome) Hassio does detect when the sensor isn’t available. That results in a sensor value ‘unavailable’. For now i made a workaround to detect that value and set a sensor to 0 or 1. In the automation script i only set new brightness levels if the sensor is not 0 = ‘unavailable’ using a condition.

I can’t figure out how to handle this in the sensor template itself. If i using INT or FLOAT and the sensor value isn’t numeric it has an outcome. I suspected something else…

Is there a trick to not update a template sensor when the ESPHOME sensor is ‘unavailable’?

My brightness math:

value_template: '{{((((states.sensor.living_room_brightness.state | int - 1) * (1 - (states.input_number.maxbright.state) | int) / (states.input_number.maxldr.state | int -1 ) + (states.input_number.maxbright.state) | int ) | int -1) | float * (states.sensor.brightfactor.state) | float) | int}}

If the room_brightness is a string (no numeric) it will always result in the maxbright state.

Hope you understand my problem.
If any info is needed, let me know.

Posts: 11

Participants: 4

Read full topic

HACS and using ui-lovelace.yaml help

$
0
0

@Vaughanza wrote:

Guys,
There couple of things I want to install from HACS and it says I have to add a line to ui-lovelace.yaml .
I don’t know how to do this, I know how to add to my configuration file but have no idea how to add to ui-lovelace.yaml.

For example, trying to install the Button Card and says I need to add this to ui-lovelace.yaml as below:

resources:

  • url: /hacsfiles/button-card/button-card.js
    type: module

Does HACS add this line automatically or do I add it manually and how would I do this?

Thanks

Posts: 2

Participants: 2

Read full topic


Automatically activate a Yale Smart Alarm on Home exit

$
0
0

@feh123 wrote:

Hi I have a RPi Zero running Buster, HA 0.106.6. It controls switches, a Yale Smart Alarm and cameras. I wanted to be able to automatically activate the alarm when I left home. It would need to have the enable/disable button so that I could allow others to remain in the the house if necessary.
I have coded a device tracker that uses my router to ping my phone. This works well and the HA app shows the phone home or away. I have tried to create an automation with the automation editer that links this to the services from the Yale Alarm - alarm_arm_home. I have also tried to write automation code directly to my configuration.yaml. No success so far using either platform state or template. Does anyone have some code that works for this? Thanks

Posts: 10

Participants: 4

Read full topic

Choosing a bridge: OpenZWave/qt-openzwave vs. OpenZWave/Zwave2Mqtt

$
0
0

@desvdp wrote:

Hi All,
I’d like to move away from the internal zwave integration if favour of an MQTT based gateway.

After some poking around, it seems there are two mainstream options available:
A. OpenZWave/qt-openzwave combined with the cgarwood/homeassistant-zwave_mqtt HA integration
B. OpenZWave/Zwave2Mqtt which uses MQTT discovery for integration with HA

it seems both are using OZW 1.6 underneath.

It feels like the first is might be preferred by the HA team (it was mentioned late last year in the future changes); while the latter feels more mature, with an included control panel

As my setup is using homeassistant on docker (no supervisor), the latter might be easier to install/maintain.

Any opinions about which I should go for?
As both seem competing solutions, any insights about their future?

Thanks !

Posts: 2

Participants: 2

Read full topic

Add to Shopping List button

$
0
0

@simonmillerSA wrote:

Hi there, My apologies if this has been asked (I can’t find anything)

I have to build my shopping list and all is working great. I was just wondering if you can add “short cut” buttons with a few pre-defined items we always use. Like Bread, Milk, Juice, etc… Above the List.

So if someone clicks it it adds the item to the list without typing it out every time.

Posts: 4

Participants: 2

Read full topic

Controlling under floor heating valves with Sonoff/Shelly

$
0
0

@snosig wrote:

Hi

I have been looking at ways to control my under floor heating system through HA. I have two manifolds next to each other, each connected to 8 heating loops. So in total there are 16 loops controlling about 12 zones.

I will have Xiaomi temperature sensors that report the temperature of every zone to HA. I then need to find a way to control the motoric valves.

First I looked at ready solutions like Homematic IP but found that too expensive.

Next I researched arduino boards and ways to open and close the valves using ESP32/8266 and relay boards but I’m just starting tipping my toes into the home automation world so I’m afraid that is going to be too complex (I am an engineer with some programming background).

Now I am wondering if it is possible to use the Sonoff 4 Channel R2 switch or the Shelly 4 Pro. I would then connect 4 and 4 valves to each switch, which means I would end up with 3 or 4 switches. Then I would let HA tell the switches when to send power to the valves depending on the output from the temperature sensors.

So I ask you, is this solution the easiest “cheap” way to accomplish my goal or am I overlooking something?
And if I decide to go with e.g. the Sonoff 4 channel switch, do I need to flash it with Tasmota and use ESPHome or can I just use it straight out of the box?

Thanks in advance

Posts: 1

Participants: 1

Read full topic

Get mp4 file from MQTT message and send through telegram

$
0
0

@MoiZie wrote:

I am using 2 Xiaomi yi 1080p cams, hacked with https://github.com/roleoroleo/yi-hack-MStar so I can recieve MQTT messages. My goal is to create a low cost alarm system and I have already set up HomeAssistant (venv), mosquitto MQTT and working Telegram config. But now I’m struggling with getting the required movie files from the camera and sending them.

My camera MQTT messages are as follows:
First, upon detection of motion the camera sends:
Message 595 received on camera/balcony/motion at 14:44 :
motion_start
QoS: 0 - Retain: false

This is followed by:
Message 596 received on camera/balcony/motion at 14:45 :
motion_stop
QoS: 0 - Retain: false

And lastly:

Message 597 received on camera/balcony/files at 14:46 :
{
“start”: “2020-03-16T13:27:51+0000”,
“end”: “2020-03-16T13:28:53+0000”,
“files”: [
“2020Y03M16D13H/28M00S60.mp4”,
“2020Y03M16D13H/27M50S10.mp4”
]
}
QoS: 0 - Retain: true

Now, I am able to scp / SSH into the camera and use
“scp root:pass@ip:/file/2020Y03M16D13H/28M00S60.mp4 telegramalert” to locally store my file in the telegramalert directory, but this is done manually.
Also, I can use telegram_bot.send_video service to send the file to myself… But this is also manually.
And then I delete the file, but also by hand.

I have created a template sensor with:

  • platform: mqtt
    name: balkoncamfilm
    state_topic: “camera/balcony/files”
    value_template: '{{ value_json[“files”] }} ’

But this outputs:

[‘2020Y03M16D13H/28M00S60.mp4’, ‘2020Y03M16D13H/27M50S10.mp4’]

My scripting / bash / shell command skills are not advanced enough to know where to go from here. Basically I want HomeAssistant to determine the 2 file names, download those from the camera and send them through telegram. But I don’t know how I should do this automatically.

Edit; and it appears sometimes there is even more motion files, longer duration of the event provides more video files:

[‘2020Y03M16D15H/38M00S60.mp4’, ‘2020Y03M16D15H/37M00S60.mp4’, ‘2020Y03M16D15H/36M00S60.mp4’, ‘2020Y03M16D15H/35M24S36.mp4’]

So I need to somehow break everything up in multiple files, ‘foreach’ loop.

Posts: 2

Participants: 1

Read full topic

Viewing all 105851 articles
Browse latest View live


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