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

Closing garage door 30 min before sunset if no motion

$
0
0

Hi,

I am new to HA and trying to make sure my automation is correct for what I want to do. The end goal is to have HA close my garage door if it is at least 30 mins before sunset, there is no motion in the garage, and the garage door is open. Can someone check my work? Here is my code from the automation.yaml:

Thanks,
Andy

  alias: Close Left Garage Door 30 min before sunset
  description: ''
  trigger:
  - event: sunset
    offset: -00:30
    platform: sun
  - entity_id: binary_sensor.garage_motion_sensor
    for: 00:10
    platform: state
    to: 'off'
  condition:
  - condition: device
    device_id: a287e823d6834fa68c3124bf4b59adf4
    domain: cover
    entity_id: cover.left_garage_door
    type: is_open
  action:
  - device_id: a287e823d6834fa68c3124bf4b59adf4
    domain: cover
    entity_id: cover.left_garage_door
    type: close
  mode: single

1 post - 1 participant

Read full topic


How to 'navigate' between dashboards?

$
0
0

HI,

experimenting with the dashboard options, I have created a dashboard next to the default ui-lovelace.yaml.

Using a small shortcut menu set of buttons with buttons like this:

      - type: custom:button-card
        template: button_shortcut_menu
        icon: mdi:light-switch
        tap_action:
          action: navigate
          navigation_path: lights
        variables:
          path: lights

works perfectly in the regular ui-lovelace.yaml config, but doesnt work in the second dashboard.

the views are in the exact same folder, and both ui-lovelace.yaml and my dashboard-settings.yaml reference these views.

Why cant I have the buttons link to these views in the dashboard-settings.yaml? Should I use another path?

please have a look? thanks!

1 post - 1 participant

Read full topic

Homematic HM-LC-SW1-Ba-PCB second channel missing

$
0
0

Hi,

for the Homematic device HM-LC-SW1-Ba-PCB I find the following problem. It has two channels but only the first one can be controlled by Home Assistant. There are the two channels available in Homematic CCU.

Could anyone help out with this issue? How can I control both channels in Home Assistant? Any idea?

2 posts - 1 participant

Read full topic

Reolink PoE cameras with motion detection?

$
0
0

Has anyone set up Reolink cameras with motion detection in home assistant?

Ie i want to use the cameras built in motion detection as an entity.

I have 2 Reolink 410 5MP bullet cams.

Any ideas?

2 posts - 2 participants

Read full topic

SONOFF Zigbee CC2531 USB Dongle and Mija Sensors

$
0
0

Im finally connected mija motion sensor to Hassio on Pi with Sonoff Zigbee dongle
But Im not sure it works
I see these entities in HA, and non of them change its state

LUMI lumi.sensor_motion 3b769703 ias_zone - clear
LUMI lumi.sensor_motion 3b769703 occupancy - detected
LUMI lumi.sensor_motion 3b769703 power - unknown

Any thoughts?

1 post - 1 participant

Read full topic

When door bell rings, show front camera on TV

$
0
0

as of now, i have a snapshot from the front Amcrest camera sent to my Telegram whenever someone rings the doorbell. took many help from everyone here to get it working.
now, im curious if i can get it working whenever i am at home with the Nvidia connected to the TV. so when the doorbell rings, Nvidia Shield will turn on the TV showing a snapshot…or even better a live streaming from the front door camera. is this even possible???

1 post - 1 participant

Read full topic

Phpmyadmin iin docker (linux)

$
0
0

Hi.
If I install mysql and phpmyadmin in docker. Does anyone know how I can access the phpmyadmin to manage the databases?
Thank you

mysql

docker run -d --name mysql --restart=always -p 3306:3306 -v /home/sysop/docker/containers/mysql:/var/lib/mysql -e MYSQL_ROOT_HOST=172.17.0.21 -e MYSQL_ROOT_PASSWORD=stinkycemo mysql/mysql-server

phpmyadmin

docker create --name myadmin --restart=always --link mysql:db -p 8383:80 phpmyadmin/phpmyadmin

1 post - 1 participant

Read full topic

Meteorologisk institutt (Met.no) rain vaule to the quadratrillionth Place

$
0
0

Anyone been having issue with the “default” weather service “Meteorologisk institutt (Met.no)”

On my frontend the rain vaule on the card shows this!

image|690x426

This messes up the placement of allot of the other text as you can see you cant see the temperature and location.

Ideas?

2 posts - 2 participants

Read full topic


HA 0.114.2: Manual Alarm doesn't restore previous state after reboot

Energy Consumption for Neo Coolcam Plug

$
0
0

Hi, I have a couple of Neo Coolcam Smart Plug in my home, it already pairing, and show me some data, but I’m confused how to calculate the power consumption, I’ve been reading some thread in this forum, closest one is this one, but no solution there too.
I have done the utility meter in my config, but the numbers are weird,energy

This is all the entities that come with this devices

If anyone have any experienced with this Neo Coolcam plug, please help me.
Thank you before

1 post - 1 participant

Read full topic

Help With A Template / Automation

$
0
0

Looking for the best way to consolidate this automation.

If it is cloudy or rainy, then lights will go off 10 min after sunset
if it is not rainy or cloudy, then lights will go off when sun elevation is -3

I was thinking an idea would be to create a binary sensor for with all off the value logic, and and the result of it turning on will be the trigger in my automation.

- alias: Exterior Lights - Elevation - Off
  initial_state: true
  trigger:
    - platform: numeric_state
      entity_id: sun.sun
      value_template: "{{ state_attr('sun.sun', 'elevation') }}"
      above: -3
  condition:
    - condition: template
      value_template: {{ (not is_state('weather.home', 'cloudy')
                       or not is_state('weather.home', 'rainy'))
                       and state_attr('sun.sun', 'rising') == true}}
  action:
	- service: script.exterior_lights_off
	
- alias: Exterior Lights - Sunrise - Off
  initial_state: true
  trigger:
    - platform: sun
      event: sunrise
      offset: "00:10:00"
  condition:
    - condition: template
      value_template: {{ (is_state('weather.home', 'cloudy')
                       or is_state('weather.home', 'rainy'))
                       and state_attr('sun.sun', 'rising') == true}}
	- service: script.exterior_lights_off	

1 post - 1 participant

Read full topic

Tileboard help please

$
0
0

Okay, i have spent the last 3 hours trying to figure this out. im trying to have 3 lights with sliders and rgb and no matter what i do i cant figure the syntax out. i can get the 3 lights in place but when i try and add the sliders like in bedroom it just throws errors and i could really use a pointer please





  pages: [{
      title: 'Main page',
      bg: 'images/bg1.jpeg',
      icon: 'mdi-home-outline', // home icon
      groups: [{
          title: '',
          width: 6,
          height: 2,
          items: [
            {
              position: [0, 1],
              title: 'Spotlights',
              id: 'light.h801_roof_spots',
              type: TYPES.LIGHT,
              states: {
                on: "On",
                off: "Off"
              },
              icons: {
                on: "mdi-lightbulb-on",
                off: "mdi-lightbulb",
              }
            },

            {
              position: [1, 0],
              title: 'Shower',
              id: 'light.shower_light',
              type: TYPES.LIGHT,
              states: {
                on: "On",
                off: "Off"
              },
              icons: {
                on: "mdi-lightbulb-on",
                off: "mdi-lightbulb",
              }

            },


            {
              position: [0, 0],
              title: 'Bedroom LED',
              id: 'light.bedroom_led_strips',
              type: TYPES.LIGHT,
              states: {
                on: "On",
                off: "Off"
              },
              icons: {
                on: "mdi-lightbulb-on",
                off: "mdi-lightbulb",
              },
              sliders: [{
                  title: 'Brightness',
                  field: 'brightness',
                  max: 255,
                  min: 0,
                  step: 5,
                  request: {
                    type: "call_service",
                    domain: "light",
                    service: "turn_on",
                    field: "brightness"
                  }
                },
                {
                  title: 'Color temp',
                  field: 'color_temp',
                  max: 588,
                  min: 153,
                  step: 15,
                  request: {
                    type: "call_service",
                    domain: "light",
                    service: "turn_on",
                    field: "color_temp"
                  }
                }

              ],


              colorpicker: true
            }




          ]
        },





      ]
    },

    {
      title: 'Second page',
      bg: 'images/bg2.png',
      icon: 'mdi-numeric-2-box-outline',
      groups: [{
        title: '',
        width: 2,
        height: 3,
        items: [{
            position: [0, 2],
            title: 'Floor lamp',
            subtitle: 'Lounge',
            id: 'light.bedroom_led_strips',
            type: TYPES.LIGHT,
            states: {
              on: "On",
              off: "Off"
            },
            icons: {
              on: "mdi-lightbulb-on",
              off: "mdi-lightbulb",
            },
            sliders: [{
                title: 'Brightness',
                field: 'brightness',
                max: 255,
                min: 0,
                step: 5,
                request: {
                  type: "call_service",
                  domain: "light",
                  service: "turn_on",
                  field: "brightness"
                }
              },
              {
                title: 'Color temp',
                field: 'color_temp',
                max: 588,
                min: 153,
                step: 15,
                request: {
                  type: "call_service",
                  domain: "light",
                  service: "turn_on",
                  field: "color_temp"
                }
              }
            ],
            colorpicker: true
          }


        ]
      }, ]
    }
  ],
}

1 post - 1 participant

Read full topic

Save data for analysis

$
0
0

Hello,

I’d like to start saving some data from my sensors for further explorations with grafana or similar. All the solutions I’ve found always require that I store all my data on a database, but I’m not looking for that. I’d like to keep the home assistant SQLite database as is with the 7 day data and save some personalized information Like daily max and min temp, max and min wind, monthly KWh consumptions, etc. on a database.

Something similar with File but to write on a database would work. Any idea on how could I achieve that?

Thank you

1 post - 1 participant

Read full topic

My goodnight routine stopped working post 0.113

$
0
0

This has been driving me mad for a week now and I finally got around to analysing it. However, I can’t locate the break. This was working perfectly prior to updating to 0.113. Here’s what’s configured:
Automation to play a recorded mp3 of me saying ‘Hey Google, good night’, from one of my smart speakers to my other.

- alias: 'Activate Google Home Routine - Goodnight'
  initial_state: 'on'
  trigger:
    platform: event
    event_type: deconz_event
    event_data:
      id: master_bedroom_dimmer_switch
      event: 4001
  action:
  - service: media_player.volume_set
    data:
      entity_id: media_player.christina_s_clock
      volume_level: 0.7
  - service: media_player.play_media
    data_template:
      entity_id: media_player.christina_s_clock
      media_content_id: http://192.168.1.106:8123/local/goodnight.mp3
      media_content_type: audio/mp3
  - service: script.turn_on
    entity_id: script.goodnight_routine

This then uses the Google Assistant routine off my smart speaker to play a Spotify playlist called ‘Sleep’. Then it passes onto the script.goodnight_routine:

goodnight_routine:
  alias: Goodnight Routine
  sequence:
  - service: input_boolean.turn_on
    entity_id: input_boolean.bed_occupied
  - service: switch.turn_on
    entity_id: switch.string_lights_switch
  - service: scene.turn_on
    entity_id: scene.master_bedroom_nightlight
  - service: script.lounge_off
  - service: media_player.turn_off
    entity_id: media_player.lounge_android_tv
  - service: homeassistant.turn_off
    entity_id: group.veranda, switch.garage_lights, group.kitchen, group.study, light.laundry_light, light.hall_light, light.master_bedroom_light, input_boolean.kitchen_lights_turned_on_manually
  - wait_template: "{{ is_state('media_player.bedroom_group', 'playing') }}"
    timeout: '00:00:45'
    continue_on_timeout: true
  - service: light.turn_on
    entity_id: light.christina_s_lamp
    data:
      effect: Sunset  
  - service: light.turn_on
    entity_id: light.angelo_s_lamp
    data:
      effect: Sunset  
  - service: script.led_strip_sunset
  - delay: '00:15:00'
  - service: media_player.turn_off
    entity_id: media_player.bedroom_group, media_player.angelo_s_clock, media_player.christina_s_clock
  - service: switch.turn_off
    entity_id: switch.electric_blanket_switch
  - service: homeassistant.turn_off
    entity_id: group.bedroom

This should then activate the wait_template to continue on with activating my lighting routines, and then after 15 minutes, turn off my electric blanket, music and lights.

I’m getting as far as
- delay: '00:15:00'
…but then nothing else happens. This leaves my electric blanket on and music to continue playing, when they should turn off after 15 minutes. Logs also don’t show any foul play.

Any ideas, guys?

1 post - 1 participant

Read full topic

Disable smart smoke detector?

$
0
0

Still playing with HA, but I’ve noticed a lot of folks use smart smoke detectors/CO2 detectors connected to zwave or zigbee. Is the selling point here simply that you can get alerted if you are away from home, or get a notification if the battery needs replacing, or can you actually control the device?

I’m not going to lie, if I could have a button on my phone that would disable the smoke detector for 15 minutes because I accidentally set it off while pan frying a steak(some day I’ll have a range hood that vents outside :frowning:), I would jump on that in a heart beat. However, that doesn’t seem to be a feature of any smoke detectors I can find.

Other than getting a hard wired smoke detector with a smart switch in the circuit(which I’m guessing would be a code violation) that could cut the power, is this possible?

1 post - 1 participant

Read full topic


Need assistance motionEye

$
0
0

I’ve had motionEye installed and working for about 6 months. About 2 months ago, it stopped recording videos and only captures JPG’s. Nothing in my configuration had changed.

I’m running Supervised HA in Docker. The motionEye container has access to the server via an SMB mount. The video folder is empty and the pics folder has pictures from the last week.

I’m totally stumped since the motionEye config hasn’t ever changed.

1 post - 1 participant

Read full topic

Tuya Bulb Effects

Hassio / HassOS and supported OS

$
0
0

Hi All,

Since lot of people gets the message: You are running an unsupported installation.
Im wondering how we gonna do this on RPi3

Official Raspberry Pi OS Buster (Debian 10) is not supported.
A official Debian 10 you can’t install on a Pi
HassOS you can, but normal way only on a SDCARD

Problem of a SDCARD is corruption …

Everybody maybe want install HassOS on a USB or SSD drive.
I tried it but my Pi’s won’t start not on a 3 not on a 4.

So can someone help us how we can install HA on a supported OS on a USB or SSD
On a Pi3 or Pi4

Maybe for the devs to build HassOS so you can install it on a USB or SSD.

If im wrong and don’t gave some info because it can let me known…

Here is a tutor how to install HassOS on SSD on a RPI3. But here it didn’t work.

And here for RPI4 also didn’t work for me:

8 posts - 2 participants

Read full topic

Alexa to call out a numeric number

$
0
0

How do call the trigger 25 numeric number in the message under action for the logic below?

- alias: livingroom_ac_on_when_temp_32
  trigger:
   - platform: numeric_state
     entity_id:
      - sensor.livingroom_sbm_temperature
     above: 25
     for: '00:10:00'
  condition:
    condition: and
    conditions: 
      - condition: state
        entity_id: binary_sensor.duc_home
        state: 'on'
      - condition: state
        entity_id: binary_sensor.livingroom_temp_thres_on
        state: 'off'
      - condition: state
        entity_id: switch.ac_unit
        state: 'off'
  action:
    - service: notify.alexa_media
      data_template:
        data:
          type: tts
        target:
         - media_player.ai_1
        message: 'The temperature is above {{ ask alexa to say 25 in trigger }} degrees.  I have turn on the ac. Please shut door and close windows.'  
  
    - service: switch.turn_on
      entity_id: switch.ac_unit

1 post - 1 participant

Read full topic

Change state icon and color

$
0
0

Hi!
I have a button that starts a script.
How do I change the icon and color from another entity state ?

1 post - 1 participant

Read full topic

Viewing all 107693 articles
Browse latest View live


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