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

Change tabs on a tablet

$
0
0

At the moment I’ve got an automation that, on my tablet, if I’ve changed away from the main tab for more than two minutes, it brings it back to the main tab.

However, it does this by the “Load URL” which causes Fully Kiosk to do a re-load of the page.

I was wondering if there’s a less visually impactful way to change the tabs please.

1 post - 1 participant

Read full topic


Aqara G3 Hub Camera Automation or camera with Pan Tilt HA and Unifi “compatible”?

$
0
0

Hello everyone,

I am looking for a solution to a “small problem” with HA and the Aqara G3 HUB (camera)
But I may also be looking for an alternative.

To explain:
I am currently using Unifi cameras with the Unifi Protect APP (outdoor cameras)
In addition, I have 2 Aquara G3 Hubs (cameras)

I use HA to control the Unifi cameras (e.g. when I leave the house = arm alarm = set cameras to record, etc.).
This works perfectly!

Now to my problem:
With the Aqara Hub G3, I have not yet found a way to implement this as well.
I have already created the automations in the Aqara app (alarm on = wake up camera and position front center, alarm off = first turn camera 180 degrees (against the wall) and then deactivate)
Unfortunately, I don’t know how I can access these automations (stored in the Aqara app) or how I can map them directly in HA.
I don’t need the camera stream, I would look at it in the Aqara app if necessary, only the switching should be realized by the triggers in HA.

If this doesn’t work…
Which indoor wifi camera supports pan-tilt, looks decent enough to be placed on a shelf, and is possibly Onvif compatible (Unifi Protect now supports Onvif cameras from third-party providers, so this would actually be the best solution)?

I would like to activate automatic switching on by an event in HA
I would like to be able to turn the camera (against the wall)
I would like to be able to activate/deactivate the camera

Is this also possible with the Ring Indoor Camera 2gen (manually covering the camera with the integrated privacy filter)
or, better yet, the Ring Pan Tilt Indoor Camera?
Recording is NOT required!
Which camera would you recommend that is as compatible as possible with HA and can possibly also be integrated under Unifi Protect.

Thanks in advance
Andreas

1 post - 1 participant

Read full topic

Picture Element card using card_mod for state-based icon rotation not working in conditional card

$
0
0

Hi,

I already have this working (fan is red and rotating) :

type: picture-elements
elements:
  - type: state-icon
    entity: climate.airco_living
    icon: mdi:fan
    tap_action:
      action: call-service
      service: script.airco_togglen
      data:
        entity_id: climate.airco_living
        use_last_modus: "on"
      target: {}
    state_color: false
    style:
      top: 10.5%
      left: 6%
      "--paper-item-icon-color": red
    card_mod:
      style:
        state-badge:
          $:
            ha-state-icon:
              $:
                ha-icon:
                  $: |
                    ha-svg-icon {
                      {% if is_state('binary_sensor.airco_living_is_on', 'on') %}
                        animation: rotation 2s linear infinite;
                      {% endif %}
                    }
                    @keyframes rotation {
                      0% {
                        transform: rotate(0deg);
                      }
                      100% {
                        transform: rotate(360deg);
                      }
                    }
image: /local/images/floorplan/downstairs/a downstairs floorplan.png

But when I put this code in a conditional card, it is not rotating anymore :

type: picture-elements
elements:
  - type: conditional
    conditions:
      - condition: state
        entity: input_boolean.toggle_airco_living_actief
        state: "on"
      - condition: state
        entity: binary_sensor.airco_living_is_on
        state: "off"
    elements:
      - type: state-icon
        entity: climate.airco_living
        icon: mdi:fan-off
        tap_action:
          action: call-service
          service: script.airco_togglen
          data:
            entity_id: climate.airco_living
            use_last_modus: "on"
          target: {}
        state_color: false
        style:
          top: 17.5%
          left: 6%
          "--paper-item-icon-color": white
  - type: conditional
    conditions:
      - condition: state
        entity: input_boolean.toggle_airco_living_actief
        state: "on"
      - condition: state
        entity: binary_sensor.airco_living_is_on
        state: "on"
    elements:
      - type: state-icon
        entity: climate.airco_living
        icon: mdi:fan
        tap_action:
          action: call-service
          service: script.airco_togglen
          data:
            entity_id: climate.airco_living
            use_last_modus: "on"
          target: {}
        state_color: false
        style:
          top: 17.5%
          left: 6%
          "--paper-item-icon-color": red
        card_mod:
          style:
            state-badge:
              $:
                ha-state-icon:
                  $:
                    ha-icon:
                      $: |
                        ha-svg-icon {
                          {% if is_state('binary_sensor.airco_living_is_on', 'on') %}
                            animation: rotation 2s linear infinite;
                          {% endif %}
                        }
                        @keyframes rotation {
                          0% {
                            transform: rotate(0deg);
                          }
                          100% {
                            transform: rotate(360deg);
                          }
                            }
      - type: state-icon
        style:
          left: 6%
          top: 50%
        entity: sensor.sfeer_avond
        icon: mdi:air-filter
image: /local/images/floorplan/downstairs/a downstairs floorplan.png

What am I missing here ?

1 post - 1 participant

Read full topic

Track last button pushed on multi-button keypad (Lutron)

$
0
0

I have a Lutron keypad with 3 action buttons, raise and lower. I would like the raise & lower to provide an action based on the last button pressed.

The device (keypad) has several buttons and switches.

What would be the best way to determine the last button pressed?

I have these in numerous places in the house, I’d rather be able to write it generically, without having to create helper entities.

1 post - 1 participant

Read full topic

Blueprint documentation tips/tricks and like "help"

$
0
0

Hello, I’ve been using homeassistant for some years now and I do make my own blueprints for my specific needs.

However, every now and then blueprints breaks due to updates and whenever at least I make new blueprint I either have to do a lot of trial and error or find a similar blueprint already publicly available because I just cannot find the appropriate documentations.

For example, I use Zigbee2mqtt (and I will move more and more towards mqtt based blueprints because they seem to make sense) but anyway, I had a script that worked flawlessly with conbee2 + Zigbee2mqtt + the standard MQTT integration with mosquito.

The trigger to that particular blueprint were a state change based on the “action” which is available in the payload.

Then, I changed to slzb-06 + Zigbee2mqtt + the standard MQTT integration with mosquito and that blueprint stopped working.

I had to remake the blueprint to use mqtt specifically but that’s my issue, why did the previous blueprint work with the previous antenna and why did it stop working now, where’s the docs that tells me what works with what?
For example conbee 2 might have a different payload that slzb-06 I dunno but if it does, where’s the docs?

And we’re do I find the docs about what device domains there are, what actions is available for state changes, events etc etc.

There’s so much I feel is missing I just get frustrated when dealing with it, enough so that I’ve been close to changing to honey pro multiple times but once again I’m stubborn and there gotta be good documentation out there?

1 post - 1 participant

Read full topic

Aqara FP1E - Presence sensor

$
0
0

Hello,

I recently purchased the Aqara FP1E presence sensor, and I’m trying to add it to my Deconz server, which uses the Conbee II stick. My server already has about 20 sensors connected and running smoothly.

The Deconz version I’m using is 2.28.02, and I would like to know if this version supports the Aqara FP1E sensor.

Currently, when attempting to pair the sensor, I see the following entries in the Deconz log:

11:02:23:258 0x54EF441000DB4604 extract Xiaomi special attribute 0x00F7
11:02:23:258    03 Device temperature 22 °C
11:02:23:258    05 RSSI dB (?) 2 (0x0002)
11:02:23:258    08 unknown 282 (0x011A)
11:02:23:258    0a Parent NWK 0 (0x0000)
11:02:23:258    0c unknown 20 (0x14)
11:02:23:258    10 unsupported tag (data type 0x20)
11:02:23:258    12 unsupported tag (data type 0x20)
11:02:23:258    65 battery 0%
11:02:23:258    66 unknown 1 (0x01)

However, the sensor does not appear in the WebUI during the pairing process.

Has anyone experienced a similar issue with this sensor or version of Deconz? Any advice or insights would be greatly appreciated!

1 post - 1 participant

Read full topic

Voice assistant: add activation-signal

$
0
0

Hello everybody :smiley:

I followed this great instruction by FutureProofHomes to create my own Raspberry voice assistant.

This works very well, but I do want to add some additional features:

  1. add a sound signal when the wake-word is recognized

Does anyone have an idea how to implement this?

Thanks in advance!

1 post - 1 participant

Read full topic

UPB Intergration stopped at

$
0
0

UPB integration is the goal …This is what I am trying to follow Universal Powerline Bus (UPB) - Home Assistant
Also trying to follow this guys experience

" BoboSD
Hi all, first post here. I just got the HA-Green and I have quite a bit of UPB. I used the Simply Automated UPB-PIM USB device and plugged it into the bottom USB port on the back of the HA Green unit.
I then uploaded the export from UPStart to the same directory as configuration.yaml
I set up the integration as follows:
Serial: /dev/ttyUSB0
File location: xxxxxx_2024JAN1.upe
Clicked on Finish and then was presented with all of my UPB devices. Assigned them to rooms and then created some test buttons on a test dashboard. All seems to work just fine."

So I have put the UPB .upe file into the Samba Z folder in my windows 11 and have connected the PIM to the HA Green USB port but am stymied at this point.

I Cannot find a PIM address to use here http://homeassistant.local:8123/config/integrations/dashboard

Guessing I have not exported my .upe file to the right place? Where is the HA configuration.Yaml ?

You all are really appreciated for staying with my awkwardness. Thank YOU… Steve

1 post - 1 participant

Read full topic


Number to Text in history-graph card? Dosent work?

$
0
0

How to get it to write out a text insted of numbers? have tried some code in config but dont get it to work. In custom:mushroom-template-card i have some code that is working, have found some code on this site but nothing works in dashboard card for history-graph, have tried to put some code in config yaml but i get error but no info in logs?
" Invalid config

The following integrations and platforms could not be set up:

  • [template.sensor]…home-assistant.io/integrations/template) (Show logs)

Please check your config and logs."

Log say:

Home Assistant Core

No problems was found for the searchword ‘template.sensor’

aaaa

1 post - 1 participant

Read full topic

Google Generative AI automation help wanted

$
0
0

I am trying to attempt to use Google Generative AI to view camera snapshots provided by HA from a blueiris mjpg stream. I started out building this with the documentation and copying other working configs i found online but kept getting failures. I then had chatgpt help me build the automation and it seems to be mostly working but still failing due to the response_variable. the original variable i chose was: response_variable: generated_content .

the main error i am receiving is: “Script requires ‘response variable’ for response data for service call google_generative_ai conversation.generate_content”.

Chatgpt had me change the response variable and create a input text helper called “input_text.ai_description”. but i still got the same errors. chatgpt had me reset the google generative ai integration up. it had me verify that it would provide a response without using the response variable when going to developer tools>actions. It was successful in providing me the description, but if i remove the response variable from the automation as it suggests, i get the same error as above indicating that it is required in my automation. If anyone can point out my mistakes and help me I would appreciate that. Here is my automation:

alias: Camera Snapshot with AI Description
trigger:
  - platform: mqtt
    topic: blue_iris/binary_sensor/front_motion/state
    payload: "ON"

action:
  # Define the snapshot file path
  - variables:
      snapshot_file: /config/www/camera_snapshots/snapshot_{{ now().timestamp() | int }}.jpg

  # Take a snapshot
  - service: camera.snapshot
    data:
      entity_id: camera.driveway_alert
      filename: "{{ snapshot_file }}"

  # Generate content using Google Generative AI
  - service: google_generative_ai_conversation.generate_content
    data:
      prompt: >-
        Briefly describe what you see in this image from my driveway camera. If
        there is a vehicle, describe the color and type. If there is a person,
        mention their gender and dress. Add the time of the picture at the end
        of the response. No date required. Keep the message short for a phone
        notification. Do not describe stationary objects or buildings.
      image_filename:
        - "{{ snapshot_file }}"
      response_variable: input_text.ai_description

  # Send the snapshot and description via notification
  - service: notify.eric
    data_template:
      message: |
        AI description: {{ states('input_text.ai_description') }}
      data:
        photo:
          - file: "{{ snapshot_file }}"
            caption: Snapshot captured by Home Assistant

1 post - 1 participant

Read full topic

Kwikset 916 z-wave deadbolt - "current status of the door"

$
0
0

i have multiple instances of Kwikset model 916 deadbolt installed. When I add these devices, ZWave-JS creates a sensor entity called “current status of the door”.

This suggests that maybe it should be capable of reporting the open/close state of the door without my needing to add another sensor for this. It totally makes sense that this should exist. However for all of the instances of this device, the entity never seems to change from the “open” state. in other words, it seems like this device doesn’t actually support this sensor. My conclusion is I should probably just disable all of these sensors in HomeAssistant, but before doing so I just wanted to check I was not missing something about how these were supposed to work. It might even be the case that these were initially not enabled, and I (wishfully) enabled them some time ago and just don’t remember…

So I’m just checking - does anyone see any useful data from Kwikset 916 (or 888)?

1 post - 1 participant

Read full topic

How to get random values within a for_each loop?

$
0
0

For context, I have six small RGB light bulbs on the front of my house, I thought it would be fun to have each individual bulb randomly alternate between red and green over the holidays.

(I should probably admit that I stole this idea from a friend’s neighbor this weekend.)

I used the random helper to create binary “light sensor” and a wrote a YAML script that does basically this:

trigger: every second of the day
action: for_each (RGB light bulb in the group of outside lights)
  if the sensor detects light,
    turn the light red
  else
    turn the light green

Note that the “if” is nested within the “for_each”. My hope was that every second, each individual light would have a 50/50 chance of toggling between red and green, uncorrelated with the other lights.

What really happens: every second, all six lights will turn red, or all six lights will turn green.

It appears that the random sensor is queried once during the script and that value is cached for the duration of the script.

Is there a way to get the random sensor’s value to be queried every time the “if” condition is executed?

Thanks in advance!

The actual YAML:

alias: Christmas Lighting
description: ""
triggers:
  - trigger: time_pattern
    seconds: /2
conditions: []
actions:
  - sequence:
      - repeat:
          for_each: >-
            {{ expand('light.outside_garage_lights') |
            map(attribute='entity_id') | list }}
          sequence:
            - if:
                - condition: state
                  entity_id: binary_sensor.random_binary
                  state: "on"
              then:
                - action: light.turn_on
                  metadata: {}
                  data:
                    rgb_color:
                      - 255
                      - 0
                      - 0
                  target:
                    entity_id: "{{ repeat.item }}"
              else:
                - action: light.turn_on
                  metadata: {}
                  data:
                    rgb_color:
                      - 0
                      - 255
                      - 0
                  target:
                    entity_id: "{{ repeat.item }}"
mode: parallel
max: 5

3 posts - 2 participants

Read full topic

Zigbee ventilation does'nt switch off

$
0
0

Hi, I have a zigbee switch on my attic that has 3 outputs. So, I can switch to 3 different speeds and totally off. The automatisation works and switches on/off on a time. But now and then the zigbee connection doesn’t come through. Like at 17:00 o’clock the ventilation has to switch off from the highest speed. ( high speed make a noise ) . But sometimes it does’nt switch off, and then I have to do that manualy.

Is there a easy way the change the automation that it controls the status of the switch with time/speed table.

the time/speed table is:

at 07:00 off
at 10:00 speed 3
at 17:00 off
at 23:00 speed 2

In the automation I set the time equal 07:00 to set the switch off. But if the zigbee signal doesn’t reach the switch it is still turning till 10:00 .

Can somebody point me how to solve that problem?

1 post - 1 participant

Read full topic

What theme is the website example using?

$
0
0

The Home Assistant website has an example on a phone. How does one get that design? Is there a tutorial somewhere? That look doesn’t seem to be the default.

2 posts - 2 participants

Read full topic

Trouble getting voice to execute / comprehend commands

$
0
0

Hi,

(Context)
(Sorry for the long post. This part is not that important)

Let me preface this by saying that understand that it’s a work in progress and that it will get better. It’s already amazing how fast it got to where it is, but overall I already spent almost 15h between watching videos, reading online, checking parts and setting up everything. So I’m trying to decide whether to keep spending time on it now or revisit the topic in 6 months or so. The videos I saw (Network Chuck, etc) made it seem like it works way more reliably that it does in my experience.

With all the hype online about the voice assistant device. I decided to give voice a try. The voice assistance preview is out of stock (I’ll most likely buy one just to support home assistant when it’s available) so I just setup everything and tried it via the android app. If I get it working reliably enough I might setup a Wyoming satellite until I can get my the preview.

Right now, I have Google Home linked with HA and it can control all my devices really well. I don’t care that much about the local / cloud part. I was just hoping to get a smarter voice assistant and maybe have small conversations with it like I do in open-webui.

(Setup)

I already have an local AI server with a 3090 so I set it up to use llama 3.2 in Ollama. I also setup remote whisper and remote piper. That whole part works fine and it’s pretty fast.

(Problem)

My problem is that once the command is parsed voice assistant has a lot of trouble executing the commands. The voice commands are transcribed correctly. For testing I only added two devices for the voice assistant: Thermometer (aquara thermometer) and Office Fans (a tariff plug).

When I test the sentence in developer tools I get matches for the devices.

Here are the problems that I encountered so far:

  1. Turning on the office fans. I had to try a bunch of stuff. I finally got it to work by adding an alias Office Fans (same as the device name).

Anybody knows why it couldn’t just find it directly?

  1. Getting the temperature. I tried changing the name to temperature and adding aliases, but nothing worked. That one I can’t get it to work. Sentences:
  • “What’s the office temperature” → no climate device found.
  • “What’s temperature” → no clima device found
  • “What’s the thermometer” → no climate device found / if it type it rather than saying it it works even tough the voice command text when transcribed is exactly the same.
  1. Ask the assistant about old information / small talk.
    Ex: What are the 5 tallest mountains in north america?

A third of the time it works. A third it tries to execute random commands like turn off, turn on imaginary devices. The other third it tells me that it doesn’t have access to the info.

All these questions work perfectly fine when I run them in open-webui with Ollama and llama 3.2.

Has anybody else experienced these issues? If so did you find solutions for it.

Thank you

1 post - 1 participant

Read full topic


Show temp sensors in order of value

$
0
0

I have the following card that lists the current temperature readings from many different locations and color codes them by temp.

Is there a way to dynamically sort them from lowest to highest temperature?

That way, I can at-a-glance see the coldest locations?

Thank you.

type: entities
card_mod:
  style: |
    :host {
      font-size: 20px;
      height: 10px;
    }
    .card-content div {
          margin-top: 0px !important;
          margin-bottom: 0px  !important;
        }
entities:
  - entity: sensor.pirateweather_temperature
    name: Outdoors
    icon: mdi:land-fields
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_1001e1064f_blue_water_temperature
    name: Blue Water
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }        
  - entity: sensor.76_thr316_1_water_temperature
    name: 76 Water
    icon: mdi:water
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_1001dabf2f_temperature
    name: 630 Water
    icon: mdi:water
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_100139392c_temperature
    name: White Water
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
    icon: mdi:water
  - entity: sensor.sonoff_1001393418_temperature
    name: Purple Water
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
    icon: mdi:water
  - entity: sensor.well_ecobee_temperature
    name: Well
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.125_1st_floor_temperature
    name: 125 1st Fl
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.125_2nd_floor_temperature
    name: 125 2nd Fl
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_100182a1cc_temperature
    name: 125 Attic
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.371_carmine_413709040008_temperature
    name: 371 Carmine Hydronic
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.371_meadow_416484569487_temperature
    name: 371 Meadow Hydronic
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.371_bedroom_temperature
    name: 371 Meadow Front BR
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.371_large_bedroom_temperature
    name: 371 Meadow Large BR
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.371_1st_floor_temperature
    name: 371 1st Fl
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.371_2nd_floor_temperature
    name: 371 2nd Fl
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.371_hydronic_temperature
    name: 371 Hydronic
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.carmine_temperature
    name: 371 Carmine
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_1001829f81_temperature
    name: 371 Eddie
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.76_ecobee_temperature
    name: 76
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_10013932b1_temperature
    name: 629
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.630_ecobee_temperature
    name: 630
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.1st_floor_room_temperature
    name: 255 1st Fl
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.2nd_floor_east_room_temperature
    name: 255 2nd Fl East
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.2nd_floor_west_room_temperature
    name: 255 2nd Fl West
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.3rd_floor_room_temperature
    name: 255 3rd Fl
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_1001392bce_temperature
    name: White
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.blue_lr_ecobee_temperature
    name: Blue Ecobee
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_1001dabe7c_temperature
    name: Blue THR316
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_100139390d_temperature
    name: Blue Closet
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_1001829f54_temperature
    name: Green
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.sonoff_1001392bd9_temperature
    name: Purple THR316
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }
  - entity: sensor.shop_temperature
    name: Shop
    card_mod:
      style: |
        :host {
          {% if states(config.entity) | int <= 32 %}
            {% set COLOR = 'blue' %}
          {% elif states(config.entity) | int <= 48 %}
            {% set COLOR = 'aqua' %}
          {% elif states(config.entity) | int <= 62 %}
            {% set COLOR = 'burlywood' %}
          {% elif states(config.entity) | int <= 70 %}
            {% set COLOR = 'orange' %}
          {%- else %}
            {% set COLOR = 'red' %}
          {% endif %}
          --card-mod-icon-color: {{COLOR}};
          color: {{COLOR}};
        }

This is what it looks like:

2 posts - 2 participants

Read full topic

RESTful command with Octopus Energy API GraphQL

$
0
0

I’m trying to pull some additional information from the Octopus Energy API which is only available through the GraphQL API. So far I have the following configuration.yaml but I keep receiving the same error, I cannot find a solution.

sensor:
  - platform: rest
    name: Fan Club
    resource: https://api.octopus.energy/v1/graphql
    method: POST
    payload: '{ "query": "{ fanClubStatus { discountSource current { startAt discount }}}" }'
    headers:
      Authorization: "Bearer TOKEN_REDACTED"
      Content-Type: application/json
{"errors":[{"message":"POST body sent invalid JSON."}]}

I’ve confirmed my token is valid as I can get a valid response from the API when using GraphQL to send the query.

1 post - 1 participant

Read full topic

TTS stops working after some time

$
0
0

I’ve been excited to start using the Home Assistant Voice devices that arrived yesterday. Having set it up it’s great however after leaving it alone for 15 minutes or so it stops responding with TTS voice. Commands are still recognised and actioned but no speech.

The assist debug page shows the TTS is completing and has the raw sound that plays just fine so it seems to be a device/connection to device issue.

Sending a TTS action to it also fails to produce any sound but it will play media. Anybody have any idea what’s going wrong here?

TIA

1 post - 1 participant

Read full topic

Christmas Tree Automation

$
0
0

I’m struggling with controlling the Christmas tree’s on/off functionality during certain times while also allowing family members to manually turn it on if they want.

The automation part is straightforward, but the real challenge is enabling someone to physically press the tree’s power button when needed.

I’ve tried using a Wyze smart plug, but when I turn off the plug, it also turns off the tree, and no one can turn it back on. As a result, people end up moving the tree’s plug to a different outlet just to turn it on manually.

Ideally, (I think) I need a solution similar to what I have for the indoor lights. I use Z-Wave-based light switches that can be controlled both by automation and manually via the physical switch.

Any ideas on what has worked with your family?

FYI - my family isn’t interested in using apps or Alexa to turn things off and on.

2 posts - 2 participants

Read full topic

Zigbee2mqtt exposes text attribute but the same doesn't work in HA entity

$
0
0

I have an IR blaster which shows as follows in zigbe2mqtt:


When set the focus to the text box labeled “Ir code to send” and subsequently remove the focus, the code gets sent and the targeted device responds accordingly.

However, if I try the same in HA, nothing happens although it appears as HA had done something:
image
What am I missing?

1 post - 1 participant

Read full topic

Viewing all 106299 articles
Browse latest View live


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