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

Using quick bar from vbscript (change dashboard on tablet on event)

$
0
0

Hello,
I’m trying to set up a home assistant dashboard on a windows tablet. This is all working fine, but I would like to show a certain entity when a certain action occurs (for example 3d printer is printing or pause, doorbell rings, …).

I can use IOTLink to start programs on the tablet. And I wanted to use this to start a vbscript that types the following keys in the Home Assistant browser window:

e
camera.octoprint
{ENTER}

This is actually working fine, except for the enter key at the end, this doesn’t do anything. Tried with nircmd as well, but that’s the same.
When I enter manually after running the script, the entity is shown.

Anyone who has other ideas to accomplish the same, or might have an idea why this isn’t working?
I found AppDaemon scripts (but didn’t try them) since I only want the dashboard on the tablet to change, not all dashboards that are open at that moment.

regards,
Stijn

1 post - 1 participant

Read full topic


Vimar - Friends of Hue lamp switch

$
0
0

Hi,

First post here… Sorry if this is incorrect place to post question, I have been in github and now here and I think this is the place to ask.

I have a homeassistant setup at home and a few philips hue hubs integrated with my homeassistant.
Now I have a few of these switches connected and configured with my philips hue hubs:
https://www.vimar.com/en/int/catalog/product/index/code/0K03906.04

Now I wanted to add one that will be integrated directly with my homeassistant so that it can control lights from two different philips hue hubs. I tried to configure it directly in homeassistant this time but it seems there are no events tied to the switch, so I can only configure it properly with philips hue and not home assistant.

Any advice how I can get this to work properly with homeassistant? Im a bit of a beginner so any detailed guides or instructions would be much appreciated.

Thanks!

1 post - 1 participant

Read full topic

Best way to implement an on/off switch with a controlled device?

$
0
0

Hi, working on building a new system (coming from a years’ long Homeseer environment) and was wondering if there’s a simpler way to have an on/off switch (in this case an Ikea TRADFRI) control a device - basically directly controlling the target with on or off commands.

I built this and it worked, first time (yay! for me), but I feel like there’s probably a better way to do this. I basically have either trigger on or off start the automation, then use a triggerID to pass what the button press was to a choose action and handle the target device accordingly. The IKEA switch sends different signals whether the ON or OFF buttons were pressed. The target in this scenario is an Insteon on/off module.

But again, maybe there’s a better way to do this? I’m just curious to see how those more advanced folks out there might accomplish this simple task.

alias: 'Family Room: Ikea switch test'
description: ''
trigger:
  - device_id: 3dd95cdc0aa30996be5f58d2
    domain: deconz
    platform: device
    type: remote_button_short_press
    subtype: turn_on
    id: onbutton
  - device_id: 3dd95cdc0aa30996be5f58d2
    domain: deconz
    platform: device
    type: remote_button_short_press
    subtype: turn_off
    id: offbutton
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: onbutton
        sequence:
          - type: turn_on
            device_id: 5159d8f8edcffb10244507
            entity_id: switch.on_off_module_4f_27_d2
            domain: switch
      - conditions:
          - condition: trigger
            id: offbutton
        sequence:
          - type: turn_off
            device_id: 5159d8f8edcffb10244507
            entity_id: switch.on_off_module_4f_27_d2
            domain: switch
    default: []
mode: single

1 post - 1 participant

Read full topic

Binary sensor falis on setup

$
0
0

I got this error when trying to make binary sensor :
Platform error binary_sensor.switch - No module named ‘homeassistant.components.switch.binary_sensor’

this is my setup:

- platform: switch
  binary_sensors:
  - platform: "mqtt"
    name: "Bedroom 1 Update Available" 
    state_topic: "zigbee2mqtt/bedroom1"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_on: true
    payload_off: false
    value_template: "{{ value_json.update_available}}"

2 posts - 2 participants

Read full topic

'Custom element doesn't exist' error only when casting view. Who do I file a bug report with?

$
0
0

So I have an issue when casting to my Google hub that custom components (button-card in my case) comes up with an error that the ‘custom element doesn’t exist’. I found this old thread on the issue:

One of the suggestions was removing the HACS entry from Resources and creating a new one pointing to /local/. That seemed to work most of the time, but has completely stopped working now.

This lovelace view works fine on everything but casting. I’m not sure who to file a bug report with though. I don’t think its related to the component itself, as it apparently happens with a lot. It seems HACS can screw it up by gzipping, so maybe there? My real guess is core, but what do you guys think?

1 post - 1 participant

Read full topic

Weird behavior on some wall plug consumption

$
0
0

Hi. I have a bunch of Fibaro Wall plug FGWP102 that does correctly their job, but some of them, not all, return a weird consumption value from time to time.
“Normal” plugs returns values such as this :

This seems normal and connected to an utility meter, I get correct values.

Other FGWP102 returns dips and hips like this:

Overall the trend seems ok, and with the “net_consumption” setting of utility_meter, I manage to get most of the time correct value, but on these dips and hips, my meters are off and all the charts I try to do with it are messed.

Do you know what happens? It is not on a single device, it is on 2 out of 4 of them !

Thanks

2 posts - 2 participants

Read full topic

Netgear configuration.yaml deprecation questions

$
0
0

Hi,

I can’t seem to find the answers to these elsewhere. Before the move of the Netgear integration to be UI only I was using the following config:

device_tracker:
  - platform: netgear
    host: 192.168.1.1
    port: 80
    password: !secret netgear_password
    interval_seconds: 60
    consider_home: 180
    new_device_defaults:
      track_new_devices: false
    accesspoints:
      - "XX:XX:XX:XX:XX:XX"
      - "XX:XX:XX:XX:XX:XX"
      - "XX:XX:XX:XX:XX:XX"
      - "XX:XX:XX:XX:XX:XX" # router
    devices:
      - "XX:XX:XX:XX:XX:XX" 
      - "XX:XX:XX:XX:XX:XX" 

How do I replicate the following in the new integration:

  1. Turn automatic tracking of new devices off (without this it’s added >200 devices I don’t want in HA)
  2. Specify the Orbi accesspoints
  3. Specify the devices I do want to track
  4. Set the interval seconds

It’s been a long time since I set this up initially but I believe #2 and #4 were around stability of accurate device tracking with Orbi. It may be a coincidence but I’ve seen some inaccurate results since the integration change so would be interested if this is configured somewhere else now?

Thanks for your help
Steve

1 post - 1 participant

Read full topic

Template help - list based off attribute state (running/active automations)

$
0
0

Needing some help on a template to list all running automations.

One similar to the below, however, will utilise the “Current: 1” attribute state.

Where… automation…
And… attribute: Current = 1

{%- for light in states.light -%}
          {%- if light.state == 'on' -%}
          {{ light.entity_id }},
          {%- endif -%}
          {%- endfor -%}

1 post - 1 participant

Read full topic


How do I setup a card with Themostat History (Temp and ON/OFF Status) like the History information

$
0
0

Hi,

I am newbie to Home Assistant but loving it so far. You guys are amazing.

I would like a card for my thermostat in Lovelace where I can see the Temperature History and ONOFF status of thermostat just like how it displays when I click on a thermostat and go to the History tab.

See below.

image

1 post - 1 participant

Read full topic

State person.kid "not_home" no mobile data

$
0
0

So when my kids leave the house and run out of mobile data obviously the app can’t update and HA still thinks that they are home. Are there any workarounds that I can use to tell HA they are out?
Dev tools can do it, but that is awkward to do on my mobile. I can’t figure out how I can turn that into a script.
Thanks for any help.

1 post - 1 participant

Read full topic

Temp of any device

$
0
0

Hi.

I have several motion sensors and contact sensors which have a thermometer built-in.

I want to create an alert to warn me when any of the sensors detect a temp lower than 14 degrees. Not sure how to format this into the trigger and conditions in the automation screen (no yaml please).

Can anyone advise?

2 posts - 2 participants

Read full topic

What container is responsible for frontend service on port 8123 on supervised intallation

$
0
0

Hello, I’m running a supervised installation for some time already. Recently I changed my router and afterwards my homeassistant frontend in unaccessible.


sshing into raspberry pi did work, and docker ps shows zero containers exposing port 8123.

How can I troubleshoot this? What services should I restart?

2 posts - 1 participant

Read full topic

Innr Lightstrip Automation Flash and Colour Change

$
0
0

Is anyone able to help me achieve the following?

motion sensor detections motion, lights flash red twice then go to white / on.

using develop tool I can see this when changing bulb to red

            "entity_id": "light.innr_xxxxx_lighstrip",
            "state": "on",
            "attributes": {
                "min_mireds": 140,
                "max_mireds": 650,
                "effect_list": [
                    "colorloop"
                ],
                "supported_color_modes": [
                    "color_temp",
                    "hs",
                    "xy"
                ],
                "color_mode": "xy",
                "brightness": 51,
                "hs_color": [
                    0,
                    100
                ],
                "rgb_color": [
                    255,
                    0,
                    0
                ],
                "xy_color": [
                    0.701,
                    0.299
                ]

but not sure how to automate this.

1 post - 1 participant

Read full topic

Association between a S2 Unauthenticated node and a S2 Unauthenticated/Authenticated node

$
0
0

This doesn’t seem to work, and I don’t really get why. Anyone know why? One of my Z-Wave switches supports only S2 Unauthenticated. The other supports both S2 Unauthenticated and S2 Authenticated. I use zwavejs2mqtt with Home Assistant, and I included the hybrid one as both S2 Unauthenticated and S2 Autheticated. However, associations between it and the S2 Unauthenticated only switch would not have any result. If I include the hybrid switch as only S2 Unauthenticated, then the association with the S2 Unauthenticated only switch works.

Does anyone know if this is not supposed to work by design? If not, what’s the point of including a device as both S2 Unauthenticated and Authenticated? Both switches are from the same vendor so it’s not that.

4 posts - 2 participants

Read full topic

Replacing a Tasmota MQTT device

$
0
0

Hi!

I have a problem with a 4 switch tasmota device that I have replaced in my network.
To avoid Hassio reconfiguration, I have copied all tasmota configs from the old device to the new one (hostname, friendly names, topic, etc).
Hassio and Lovelace recognize the new one and I can control all switches without problem, but I have a problem with the status, it shows “unknown”.
I guess that it is related to the old one was DVES_48CF8E, and the new one is DVES_A19B2E, but I can’t find where I can change that in Hassio.

Any clue?

Best regards,
Pablo.

1 post - 1 participant

Read full topic


Help with quick thermostat temperature preset script

$
0
0

Hi everyone!

I’m trying to create a script that can be triggered with a Button to set the target thermostat temperature to a specific value, in whatever current Hvac mode it’s in.

For example: Pressing button [22°C] executes the script that does the following:

  • If thermostat is in Cool mode, set target cooling temp to 22°C
  • If thermostat is in Heat mode, set target heating temp to 22°C

I created a simple script that (in my HA newbie thinking brain) is supposed to check what HVAC state the thermostat is currently in (heat or cool) and then set the target temperature to the predefined value in that given Hvac state.

The problem is, the script does not seem to trigger any action. I have tried the same syntax in an automation, and it does execute the first condition block but then exits.

I was wondering if anyone could point me in the right direction? I’m pasting the script below. Thank you :slight_smile:

# Set the thermostat temperature to 22C in the currently selected HVAC mode
alias: '-Test-Temp_Preset_to_22C'
sequence:
  - choose:
      - conditions:
          - condition: state
            entity_id: climate.thermostat
            state: cool
        sequence:
          - service: climate.set_temperature
            target:
              device_id: 1fd200229a2abbf611da089f3840d8
              entity_id: climate.thermostat
            data:
              temperature: 22
              hvac_mode: cool
      - conditions:
          - condition: state
            entity_id: climate.thermostat
            state: heat
        sequence:
          - service: climate.set_temperature
            data:
              temperature: 22
              hvac_mode: heat
            target:
              device_id: 1fd200229a2abbf611da089f3840d8
              entity_id: climate.thermostat
    default: []
mode: single

1 post - 1 participant

Read full topic

Vizio TV Integration

$
0
0

Could someone please assist me in trying to get my Vizio TV working with Home Assistant??

It has been discovered and i can turn it on and off but i want to know what i need to do in order to create scripts/automations or whatever i need to do to setup buttons on my home assistant dashboard to directly select apps like netflix and use navigation keys up down left right etc.

I have spent weeks browsing the internet and keep seeing pyvizio mentioned but when i try to run the commands listed i get pip command not found and no one really gives any instructions to follow.

My samsung TV’s were childs play to get working i cant believe that vizio tv’s can be this difficult to intergrate.

Thanks.

1 post - 1 participant

Read full topic

Secondary Info (last_updated) inside mini-graph-card

$
0
0

Hello

I am trying to render the "secondary_info: last_updated " inside the mini-graph-card.
Currently it looks like this:
image

I was able to add the last update row with the following:

type: custom:mini-graph-card
entities:
  - entity: sensor.shelly_h_t_754b21_temperature
    name: Temperature
hours_to_show: 12
points_per_hour: 2
color_thresholds:
  - value: 18
    color: '#8fce00'
  - value: 19
    color: '#f39c12'
  - value: 20
    color: '#d35400'
  - value: 21
    color: '#c0392b'
style: |
  ha-card .states.flex::after {
    color: #F2F2F2;
    content: "Last update: {{ relative_time(states.sensor.shelly_h_t_754b21_temperature.last_updated) }} ago";
    white-space: pre;
    background-color: rgba(50,50,50,0);
    padding: 5px 5px 5px 5px;
    border-radius: 5px;
  }

As you can see, i used the last_updated state of the sensor. The problem now is, that the UI does not live update this information the way the secondary_info attribute does. Is there a way to do render this secondary_info directly inside the graph card? Or any other way to update this value live?

Thanks

1 post - 1 participant

Read full topic

Recently updated zwavejs2mqtt to 0.32.2 and now it won't connect

$
0
0

I am currently using the zwave js integration with the zwave js add-on to manage my z wave devices. I was using zwavejs2mqtt as a control panel only to set parameters for some devices.

I recently updated zwavejs2mqtt from 0.32.1 to 0.32.2 and it stopped working with the error

Driver: Failed to open the serial port: Error Resource temporarily unavailable Cannot lock port (ZW0100)

I tried to roll it back using the backup created before the update but its still giving me the same error. I’m at a loss on how to get this working again. Also while trouble shooting, all of my batter devices lost their config in zwave js and how just show up as “Node xx” in the device list. Any ideas how I might have messed this up and how to fix it?

Thanks!

2 posts - 2 participants

Read full topic

Trying to setup daily meter for existing sensor

$
0
0

I have a sensor with entity_id: sensor.deep_freezer_energy_filtered. I’m trying to set it up so I can get daily readings for the sensor using utility_meter.

I added utility_meter to my configuration file to test and ran a check validation which returns valid.

utility_meter was added like this.

utility_meter:
  daily_energy:
    source: sensor.deep_freezer_energy_filtered
    name: Deep Freezer Energy Daily
    cycle: daily

After a restart I see this error in the logs and the system gets stuck on finishing up starting home assistant.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:89
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 8:37:48 PM (1 occurrences)
Last logged: 8:37:48 PM

[548073212944] Received invalid command: energy/info

Is this a bug? Anything else I’m missing?

1 post - 1 participant

Read full topic

Viewing all 106148 articles
Browse latest View live