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

REST Sensor - Nested JSON by "Technische Alternative"

$
0
0

Hi!

I have another beginner question.
From a “Technische Alternative UVR1611 + CMI” heating control I receive the following JSON-data (shown in abbreviated form)

{

    "Header":{
        "Version":5,
        "Device":"80",
        "Timestamp":1627911243
    },
    "Data":{
        "Inputs":[
            {
                "Number":1,
                "AD":"A",
                "Value":{
                    "Value":40.0,
                    "Unit":"1"
                }
            },
            {
                "Number":2,
                "AD":"A",
                "Value":{
                    "Value":70.5,
                    "Unit":"1"
                }
            },
            {
                "Number":3,
                "AD":"A",
                "Value":{
                    "Value":34.9,
                    "Unit":"1"
                }
            }
        ],
        "Outputs":[
            {
                "Number":1,
                "AD":"A",
                "Value":{
                    "State":0,
                    "Value":0,
                    "Unit":"0"
                }
            },
            {
                "Number":2,
                "AD":"A",
                "Value":{
                    "State":0,
                    "Value":0,
                    "Unit":"0"
                }
            },
            {
                "Number":3,
                "AD":"D",
                "Value":{
                    "Value":0,
                    "Unit":"0"
                }
            },
            {
                "Number":4,
                "AD":"D",
                "Value":{
                    "Value":0,
                    "Unit":"0"
                }
            },
            {
                "Number":5,
                "AD":"D",
                "Value":{
                    "Value":0,
                    "Unit":"0"
                }
            },
            {
                "Number":6,
                "AD":"A",
                "Value":{
                    "State":1,
                    "Value":30,
                    "Unit":"0"
                }
            }
        ]
    },
    "Status":"OK",
    "Status code":0

}

Now I like to add a sensor via REST-Api, that shows me for instance the value of input number 1 - 40.0.
But when adding a sensor with the configuation

value_template: ‘{{states.sensor.SENSORNAME.Data.Inputs[1].Value[1].Value}}’

it can’t receive any data, although it should be “40.0”?
I’ve tried several different ways to implement value_template, but it won’t work (“Header” and “Status” are no problem to receive).

Can you help me figuring out my mistake?

Kind regards,
gstoetti94

3 posts - 2 participants

Read full topic


Reading multiple rows from csv

$
0
0

Im receiving every day a csv document from my heating company in CSV.
With FILE i can already export data from the document but im only getting the last value from the document.
So I was curious if I can import all data with the time when the values were recorded.

Data:
1-8-2021 00:00 19,527 GJ 0,023 m3/h 59,98 C 57,76 C 172,574 m3
1-8-2021 01:02 19,528 GJ 0,025 m3/h 59,69 C 57,44 C 172,597 m3

senor:

  • platform: file
    name: Devo test
    file_path: www/dagelijks-verbruik-devo_20210802010010736.csv
    value_template: >
    {{ (value.split(’;’)[2] ) }}

2 posts - 2 participants

Read full topic

Need Help with Scrape Sensor (CSS Select)

$
0
0

Hey, i want to use the Scrape sensor to log the listeners of following Website: www.Schwarzsender.de
In my opinion, the selector should be “#post-45 > div > div > div > div:nth-child(5) > span”.
Unfortunately, HA does not get any values with this Configuration entry:

  - platform: scrape
    name: Zuhoerer1
    resource: http://www.schwarzsender.de/
    select: '#post-45 > div > div > div > div:nth-child(5) > span'

Other fields (the title etc.) work fine.

The Code of the Website is:

<div style="width:100%;margin:auto;text-align:center;">
Zuhörer: <span class="cc_streaminfo" data-type="listeners" data-username="sender" data-mount="/986"></span>
</div>

I would be really grateful for help. I’ve been dealing with this problem for many days.

2 posts - 2 participants

Read full topic

Cannot find the generic thermostat integration

$
0
0

I have spent some time trying to setup the generic_thermostat on a rpi3. I have searched the complete file system using Terminal, but I cannot find the integration. The instructions for generic_thermostat appear to suggest that it is installed by default. Has it been removed from core-2021.7.4? I have installed HACS, but, generic_thermostat is not listed in the repository. How and where do I install it?

So far I have a coordinator (zzh! CC2652R Multiprotocol RF Stick) setup with zigbee, MQTT, Shelly 1 and 7 TRVs – all functioning correctly.

Martin

2 posts - 2 participants

Read full topic

Frigate NVR Tuning

$
0
0

I recently setup Frigate NVR, wow this is amazing. Fantastic work Blake! I have a few questions but have been reluctant to post on Github as that seems more for bugs than general inquiry. I am wondering if its better to setup my cameras with a high resolution? I have a beefy machine setup just for frigate and have resources to spare. I would like to get the clips in better resolution as some of the people detected are far away and its difficult to see them in detail. I know that it will most likely eat up more resources but I have lots to spare as I am on an I7 CPU, 16 gb of ram, 500gb NVME drive, and Coral USB accelerator. OS in Ubuntu Server and at this point Frigate is the only thing on it.

1 post - 1 participant

Read full topic

Trying to find a blueprint for IKEA 5 button remotes that work with Tradfri Gateway

$
0
0

I’m looking for blueprints that will work with my Tradfri 5 button remote. I found one that uses ZHA but the only Zigbee hub I have in my house is the Tradfri gateway, are there any blueprints out there that work with this gateway?

1 post - 1 participant

Read full topic

Can I use target as trigger? With multiple devices selected

$
0
0

I want to create a BP for multiple philips Hue buttons with the same automation. So I was testing this:

trigger:
  - platform: event
    event_type: deconz_event
    event_data:
      target: !input button_trigger

But that does not work, nor did it gave an error.

1 post - 1 participant

Read full topic

Addon Store not loading - no errors in log

$
0
0

I’m running a supervised installation on a Pi 4 (I know it’s not supported but it’s the only way I can also support my LifePO4weered Pi+ UPS hat). It’s been running fine for over 18 months.

A few days agao I updated to the latest supervisor, core and all addons. Again, everything is running OK with no errors.

Today, I decided to migrate from OpenZwave (Beta) to ZwaveJS and now I have a problem. The Add-on Store is no showing up on the supervisor addon.

I’ve seen other topics about this, but in all cases there were error messages in the log files. In my case there are none. In fact, the store does appear to be updating - it’s just not displaying

21-08-02 14:07:34 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup.git repository
21-08-02 14:07:34 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
21-08-02 14:07:34 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
21-08-02 14:07:54 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-08-02 14:07:54 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete

21-08-02 14:07:58 INFO (MainThread) [supervisor.store] Loading add-ons from store: 63 all - 0 new - 0 remove

As you can see, it has loaded 63 addons from the core, community, and one other, repositories.

Any clues?

Gareth

1 post - 1 participant

Read full topic


Gpio pins intermittently shutting off

$
0
0

I’m going crazy trying to track a problem down. Everything is working but out of the blue I lose the ability to turn on a relay. I change my code in eaphome to a different gpio and it will work for a while and then does it again! The physical momentary switch i have wired up works every time its the switch on home assistant that is intermittently working.

1 post - 1 participant

Read full topic

Newbe coming from Openhab

$
0
0

Hi All,
New here, made the move from openhab, slowly getting the hang of Home Assistamnt but i am stuck on one major thing,

I have a personal weather station that has its own website on my network, in Openhab i used to use REGEX to get the UV infor to trigger my home lights at a certain “LUX”.

I cannot for the lifr of me get the LUX value to report from the webpage. Ive tried to use the scrape method but its returning an ‘unknown’

Can i use REGEX in Home Assistant or does anyone know of a better way to get this info into openhab.

I have tried the Wunderground way but the API does not report LUX.

Weatherstation WEBPAGE

Code so far…


- platform: scrape
  name: Weather UV
  resource: http://192.168.20.99/livedata.htm
  select: "body > table > tbody > tr:nth-child(123) > td.line-content > span:nth-child(2) > span:nth-child(12)"
  value_template: ''
  unit_of_measurement: Lux

Thanks all

1 post - 1 participant

Read full topic

ZwaveJS installation Control Panel

$
0
0

I am working on switching from the deprecated zwave integration to the Z-Wave JS integration.

I use home-assistant container running on a Raspberry Pi 3B+, and have zwavejs2mqtt as another container. (Side note: my docker containers are managed through balena, with a docker-compose file).

I’ve followed the instructions here Z-Wave JS - Home Assistant and here Z-Wave JS - Home Assistant following the recommended approach for users running HomeAssistant Container.

In testing the setup, I am using a fresh zwave controller and micro-ssd card. When I start the containers on a fresh installation, with neither home-assistant nor zwavejs2mqtt configured, I can navigate to the ZwaveJS Control panel, and configure the ZwaveJS instance to properly connect to the zwave controller and run the WS server on port 3000. Once done, it connects successfully to the controller, and works well.

However, as soon as I create my home-assistant login account, the ZwaveJS Control Panel reports that it is disconnected. This is with no zwave integration yet set up in HomeAssistant.

I can, at this point, successfully add the ZwaveJS integration via the HomeAssistant configuration/integration menu, and it does successfully connect, and find the zwave controller. However, any added devices report as unknown and do not add the expected entities. (If I add devices via the ZwaveJS Control Panel prior to creating a home-assistant login account, the paired devices show up correctly with appropriate entities created for them).

I’d really like to be able to use the ZwaveJS Control Panel. I can, however, work with only the HomeAssistant ZwaveJS integration, if I can add devices in such a way that they have the expected device information and associated entities.

docker-compose.yml

version: '2.1'
volumes:
  hass-config:
  backup:
  cgroup:
  store:
  zwave-config:
    name: zwave-config
networks:
  zwave:
services:
  sh_homeassistant:
    container_name: sh_homeassistant
    build: ./sh_homeassistant
    restart: unless-stopped
    privileged: true
    volumes:
      - 'hass-config:/hass-config'
    depends_on:
      - sh_mosquitto
    labels:
      io.balena.features.supervisor-api: true
  sh_nginx:
    container_name: sh_nginx
    build: ./sh_nginx
    restart: always
    privileged: true
    labels:
      io.balena.features.dbus: '1'
    volumes:
       - 'hass-config:/hass-config'
    ports:
      - 80:80
  sh_mosquitto:
    container_name: sh_mosquitto
    build: ./sh_mosquitto
    ports:
      - 1883
    restart: on-failure
    volumes:
      - 'hass-config:/hass-config'
  zwavejs2mqtt:
    container_name: zwavejs2mqtt
    build: ./zwavejs2mqtt
    restart: always
    tty: true
    stop_signal: SIGINT
    environment:
      - SESSION_SECRET=mysupersecretkey
    devices:
      - "/dev/serial/by-id/usb-0658_0200-if00:/dev/serial/by-id/usb-0658_0200-if00"
    volumes:
      - "store:/usr/src/app/store"
    ports:
      - '8091:8091' # port for web interface
      - '3000:3000' # port for zwave-js websocket server
    labels:
      io.balena.features.supervisor-api: true
      io.balena.features.dbus: true
      io.balena.features.kernel-modules: true
      io.balena.features.balena-socket: true
      io.balena.features.sysfs: true
      io.balena.features.procfs: true
      io.balena.features.firmware: true
      io.balena.features.balena-api: true

The container running home-assistant’s build is FROM ghcr.io/home-assistant/raspberrypi3-homeassistant:2021.7.4, and the container running zwavejs2mqtt is FROM zwavejs/zwavejs2mqtt:5.4.3

Image of disconnected ZwaveJS Control Panel (note the red icon at the top right)

Image of connected ZwaveJS Control Panel (prior to creating HomeAssistant login)

I’ve tried a variety of combinations of settings in the ZwaveJS Control Panel, with the MQTT Gateway enabled and disabled both.

The problem I’m encountering does not seem related to the integration itself, but just having both HomeAssistant and ZWaveJS2MQTT both running in docker containers on the same hardware. As noted, the problem starts when I create my first login for HomeAssistant.

Since the ZwaveJS installation instructions Z-Wave JS - Home Assistant note

  1. The Z-Wave JS to MQTT Docker container
    This is the recommended approach if you’re running Home Assistant Container.

The recommendation is to run them together, so there must be a way to do so successfully.

I’d really appreciate any help in getting them working together.

1 post - 1 participant

Read full topic

Automation with choose - am I wrongly assuming how this works?

$
0
0

As part of my migration from docker to Hass Blue I’m also migrating Node RED automations to native Home Assistant. I really like the choose option! However I think I assume its working wrongly.

What I’d like to do is:

  1. Trigger
  2. Choose either of 2 actions
    (No default actions)
  3. When either of 2 choose actions have run, run some additional actions.

Item 3 doesn’t run though :frowning:
So am I wrongly assuming you can run additional services after the “choose” actions?

alias: Arriving Home
description: Home away state changed to home
trigger:
  - platform: state
    entity_id: group.home_or_away
    id: arriving_home
    to: 'on'
    from: 'off'
condition: []
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: input_select.home_state
            state: Awake
        sequence:
          - service: scene.turn_on
            target:
              entity_id: scene.home_awake
      - conditions:
          - condition: state
            entity_id: input_select.home_state
            state: Sleep
        sequence:
          - service: scene.turn_on
            target:
              entity_id: scene.home_sleep
    default: []
  - service: switch.turn_on
    target:
      entity_id: switch.nodered_ffeb3815_dbb888
  - service: notify.mail_notification
    data:
      title: '[HASS] Arriving home'
      message: >
        <redacted> thuis gekomen om ({{ states('sensor.time') }}, {{
        states('sensor.dayoftheweek')}} {{ states('sensor.month') }} {{
        states('sensor.dateofthemonth')}}).
  - service: notify.mobile_app_pixel_5
    data:
      title: '[HASS] Arriving home'
      message: >
        <redacted> thuis gekomen om ({{ states('sensor.time') }}, {{
        states('sensor.dayoftheweek')}} {{ states('sensor.month') }} {{
        states('sensor.dateofthemonth')}}).
mode: single

1 post - 1 participant

Read full topic

Ping Binary Sensor not working

$
0
0

I am running HA (core 2021.7.4) inside Docker on my Synology NAS. I am trying to automate a task that will reboot my modem when Internet goes down. I saw a few examples but for some reasons, I just can’t get the Triggers part to work. The Actions part is fine when I clicked the Run Actions button inside the YAML editor.

I am doing something wrong for sure. Just don’t know what. Hoping some one can point me in the right direction as I am learning HA.

Here is what I have in my Config file.

binary_sensor:

  • platform: ping
    host: 192.168.0.12 #Test IP
    count: 2
    scan_interval: 60 # 1 minute test
    name: “Internet_Connection”

And here is what I have in my automation file.

alias: Electrical room - reboot modem
description: Reboot modem when Internet goes down
trigger:

  • platform: state
    entity_id: binary_sensor.internet_connection
    from: ‘On’
    to: ‘Off’
    condition: []
    action:
  • service: switch.turn_off
    data: {}
    target:
    entity_id: switch.appliance_module_103
  • delay: 30
  • service: switch.turn_on
    data: {}
    target:
    entity_id: switch.appliance_module_103
    mode: single

3 posts - 3 participants

Read full topic

Display (text) in Amazon Echo Show

$
0
0

I have a routine that calls script that gets the current pool temperature using a template. Alexas says: The pool temperature is X degrees. I am wondering if there is a way I can show (text) “The pool is at X degrees” Is that possible with HA?

1 post - 1 participant

Read full topic

HELP- HA BLUE supervisor panel won't load

$
0
0

been having a wonderful time running the blue- suddenly two days ago supervisor won’t load, and no amount of cache clearing and physical re-boots seem to address the problem. none of my side panel apps like node, SSH, file manager will load either. obviously can’t access my snapshots- not sure how to proceed.

Version core-2021.8.0b2
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
Virtual Environment false
Python Version 3.9.6
Operating System Family Linux
Operating System Version 5.10.53
CPU Architecture aarch64
Timezone America/Los_Angeles

Home Assistant Supervisor

Host Operating System Home Assistant OS 6.2
Update Channel beta
Supervisor Version supervisor-2021.06.8
Docker Version 20.10.6
Disk Total 113.9 GB
Disk Used 8.7 GB
Healthy true
Supported true
Board odroid-n2
Supervisor API ok
Version API ok
Installed Add-ons Z-Wave JS (0.1.33), Check Home Assistant configuration (3.8.0), File editor (5.3.3), Node-RED (9.2.1), Terminal & SSH (9.1.3)

1 post - 1 participant

Read full topic


Simple questions about Lovelace (YAML mode) and dashboard references

$
0
0

So I’m taking the plunge – I want more comments in my work, so I’m moving to YAML mode for Lovelace config. Pray for me (still a newbie, and somewhat intimidated).

And we’re already seeing the limits of my knowledge .

I got the resources set up alright using (!include resources/resources.yaml) but was unable to do the same for the filename tags referencing the dashboard yaml. To illustrate:

dashboards:
  ui-myhome:
    filename: !include dashboards/ui-myhome.yaml

This call consistently threw errors. Meanwhile, if I placed the dashboard yaml directly in the config directory and just referenced them directly:

filename: ui-myhome.yaml

… everything was fine.

Did my best to dig through documentation and similar questions, but the answer eludes me. Any help?

Thanks!
Justin

1 post - 1 participant

Read full topic

Changing the state color - how?

$
0
0

Hya,

i have the folowing card:

type: entities
entities:
  - entity: binary_sensor.ek3117
    icon: mdi:radiator
    name: Egg Boiler EK3117
  - entity: switch.egg_on_off
    icon: mdi:egg
    name: On/Off
state_color: true

and would like to assign a diffente color fot state. Is there a way? I couln’t find it.

Thx in advance.

1 post - 1 participant

Read full topic

How to display local time in lovelace

$
0
0

Can anyone tell me why this displays UTC instead of local time?

sensor:
  - platform: command_line
    name: get_time_date
    command: date "+ %I:%M %p";echo;date "+%b-%d-%Y"

My Lovelace display shows UTC while the same command on the rPi console shows the correct time.

Thanks for any advice.
Bart

2 posts - 2 participants

Read full topic

Link between Dimmer and switch - Tasmota

$
0
0

I have this dimmer: AVATTO Tuya Led Touch Wifi Dimmer Light Switch, Smart Strip Bulb Dimmer Switch with APP, Voice Remote for Alexa, Google Home|Home Automation Modules| - AliExpress
When pressed off, it does not turn off a relay, but lowers the brightness to 0, and then sets as power=off.

I want to connect another switch that can turn the dimmer on and off (NOT dimming the light) and be sync.

I tried to do this with automation and node-RED but encountered the following issues:

  1. The switch takes 3 seconds (when it is at a brightness of 100) until it turns off.
    I tried to do a delay, but it does cause problems and he sometimes gets dizzy.
  2. I tried to set as a group in Tasmota, but it does not give me (maybe because I gave each device a fixed IP?)

Anyone have an idea? Thanks in advance

1 post - 1 participant

Read full topic

Samsung Custom integration not found

$
0
0

Hi friends. I am trying to integrate this module.
The problem is that I install it from hacs and when I want to restart it tells me that the integration is not installed. However I installed it and it asked me to reboot for it to work.
I clarify that I use home assistant os

GitHub - roberodin/ha-samsungtv-custom: :tv: HomeAssistant - SamsungTV Custom Component

When I configure media player samsung there is where it shows me the error.

Thanks a lot

media_player:
  - platform: samsungtv_custom
    host: 192.168.0.16
    mac: 84:A4:66:8B:1D:3A
    port: (8001 or 8002)
    sourcelist: '{"x": "KEY_HDMI1", "x": "KEY_HDMI2", "x": "KEY_HDMI3"}'

1 post - 1 participant

Read full topic

Viewing all 105859 articles
Browse latest View live


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