Home Assistant : Q&A, Tips & Tricks, Your Configs

xrapidx

Honorary Master
Joined
Feb 16, 2007
Messages
40,308
I wonder whether making the garage door a cover would resolve the "trigger garage door" issue by catering for open and close? My garage door cover looks like the following:

YAML:
cover:
  - platform: template
    covers:
      right_garage_door:
        device_class: garage
        friendly_name: "Right Garage Door"
        availability_template: "{{ is_state('binary_sensor.right_garage_door_connection_status', 'on') }}"
        value_template: "{{ is_state('binary_sensor.right_garage_door', 'on') }}"
        open_cover:
          - condition: state
            entity_id: binary_sensor.right_garage_door
            state: "off"
          - service: switch.toggle
            target:
              entity_id: switch.right_garage_door
        close_cover:
          - condition: state
            entity_id: binary_sensor.right_garage_door
            state: "on"
          - service: switch.toggle
            target:
              entity_id: switch.right_garage_door
Mine is similiar - just using MQTT - for some reason you have to specify open or close - you can't just attempt to trigger it. I wonder if toggle would work as a keyword.

I suppose it sort of makes sense because google assistant doesn't know what you're trying to do to the garage door.
 

MidnightZA

Expert Member
Joined
Mar 9, 2013
Messages
2,452
Mine is similiar - just using MQTT - for some reason you have to specify open or close - you can't just attempt to trigger it. I wonder if toggle would work as a keyword.

I suppose it sort of makes sense because google assistant doesn't know what you're trying to do to the garage door.

Toggle does work. I used it yesterday in my test I did with the geyser
 

MidnightZA

Expert Member
Joined
Mar 9, 2013
Messages
2,452
Let the automation begin!

View attachment 1275372

Quoting this from that other thread.

Where did you buy those from?
Do you prefer the feel of the touch panel over the physical switch?

I want to made my lights smart but I cant find an option to keep physical switches and have 2/3 gang switches. Shellys/Sonoff Minis wont work for me
 

Snyper564

Honorary Master
Joined
Oct 1, 2008
Messages
15,342
Quoting this from that other thread.

Where did you buy those from?
Do you prefer the feel of the touch panel over the physical switch?

I want to made my lights smart but I cant find an option to keep physical switches and have 2/3 gang switches. Shellys/Sonoff Minis wont work for me
I bought all of them from Geewiz - the total SA price vs banggood was R300/400 in total so I bought local instead. Their service is lightning fast next day delivery too.

The touch story is 100% preference I like both but I do like the touch panel. Super easy to install etc just ensure you have neutrals when I installed our last solar battery got electrician to pull all of them.

As someone else suggested buy one to test if you like it or not, thats what we did tried it for the week loved it and bought the rest.

 

MidnightZA

Expert Member
Joined
Mar 9, 2013
Messages
2,452
I bought all of them from Geewiz - the total SA price vs banggood was R300/400 in total so I bought local instead. Their service is lightning fast next day delivery too.

The touch story is 100% preference I like both but I do like the touch panel. Super easy to install etc just ensure you have neutrals when I installed our last solar battery got electrician to pull all of them.

As someone else suggested buy one to test if you like it or not, thats what we did tried it for the week loved it and bought the rest.


I think I may just get 1 for testing.

Also, do you know if these switches have double tap feature for a different action?
 

tRoN

Executive Member
Joined
Mar 13, 2007
Messages
6,739
I bought all of them from Geewiz - the total SA price vs banggood was R300/400 in total so I bought local instead. Their service is lightning fast next day delivery too.

The touch story is 100% preference I like both but I do like the touch panel. Super easy to install etc just ensure you have neutrals when I installed our last solar battery got electrician to pull all of them.

As someone else suggested buy one to test if you like it or not, thats what we did tried it for the week loved it and bought the rest.


I’ve had a negative experience.
The touch is not sensitive enough and needs a few taps to get it to work.

Also the led square is not as bright as the pic so you struggle to find the switch area when there is some ambient light
 

Snyper564

Honorary Master
Joined
Oct 1, 2008
Messages
15,342
I’ve had a negative experience.
The touch is not sensitive enough and needs a few taps to get it to work.

Also the led square is not as bright as the pic so you struggle to find the switch area when there is some ambient light
I changed how I tap the switches - used to try press the spot now I basically aim my hand in the direction and have about 2-4 fingers in the general area works very nicely. its all muscle memory at the end of the day. I also just swipe my hand down accross the entire panel two switch on two lights in the same area if I want
 

tRoN

Executive Member
Joined
Mar 13, 2007
Messages
6,739
I have the sonoff inching relay for my gate garage and it works great.
I use the HomeKit integration for “popular” HA devices.

The problem is that Siri recognizes the device as a switch and you have to say “switch the gate on”.

Is there any way to make the sonoff be recognized as a device that you can use an “open the gate” command and “close the garage” commands ?
 

Snyper564

Honorary Master
Joined
Oct 1, 2008
Messages
15,342
I have the sonoff inching relay for my gate garage and it works great.
I use the HomeKit integration for “popular” HA devices.

The problem is that Siri recognizes the device as a switch and you have to say “switch the gate on”.

Is there any way to make the sonoff be recognized as a device that you can use an “open the gate” command and “close the garage” commands ?
I use google home and I know you can can do this - so I say "turn on movie lighting" for example
 

MattRoy

Well-Known Member
Joined
Jan 10, 2011
Messages
358
I have the sonoff inching relay for my gate garage and it works great.
I use the HomeKit integration for “popular” HA devices.

The problem is that Siri recognizes the device as a switch and you have to say “switch the gate on”.

Is there any way to make the sonoff be recognized as a device that you can use an “open the gate” command and “close the garage” commands ?
Maybe try configuring a cover template and see if that works?

Example:

YAML:
cover:
  - platform: template
    covers:
      right_garage_door:
        device_class: garage
        friendly_name: "Right Garage Door"
        availability_template: "{{ is_state('binary_sensor.right_garage_door_connection_status', 'on') }}"
        value_template: "{{ is_state('binary_sensor.right_garage_door', 'on') }}"
        open_cover:
          - condition: state
            entity_id: binary_sensor.right_garage_door
            state: "off"
          - service: switch.toggle
            target:
              entity_id: switch.right_garage_door
        close_cover:
          - condition: state
            entity_id: binary_sensor.right_garage_door
            state: "on"
          - service: switch.toggle
            target:
              entity_id: switch.right_garage_door
 

AmazeBalls

Well-Known Member
Joined
Jul 13, 2013
Messages
132
Anyone using the Telegram intergration. Been trying to get a snapshot of a camera (unifi intergration) based on motion. Can get it to work well with a message but seems i a missing a step where it pulls the snashot from and url. Currenlty pulling from Config/www/tmp/snapshot_camera_name.jpg. Have whiltelisted the URL but fails at that point.
 

deesef

Expert Member
Joined
Mar 3, 2017
Messages
2,627
Also the led square is not as bright as the pic so you struggle to find the switch area when there is some ambient light

Escum says our electricity is constrained (again / still)!!! Please don't use lights during the day
 

deesef

Expert Member
Joined
Mar 3, 2017
Messages
2,627
Anyone using the Telegram intergration. Been trying to get a snapshot of a camera (unifi intergration) based on motion. Can get it to work well with a message but seems i a missing a step where it pulls the snashot from and url. Currenlty pulling from Config/www/tmp/snapshot_camera_name.jpg. Have whiltelisted the URL but fails at that point.
Here's is an extract of my automation to send pictures together with a message. Check if you can get alignment with your script?


- service: camera.snapshot
target:
entity_id: camera.driveway_camera
data:
filename: /media/snapshots/driveway_camera_alarm.jpg
- service: camera.snapshot
target:
entity_id: camera.front_camera
data:
filename: /media/snapshots/front_camera_alarm.jpg
- service: telegram_bot.send_message
data:
title: Huis alarm
message: >-
Die huis alarm skreeu!!! ADT sal seker nou nou bel. Kyk wat wys op die
kameras.
- service: telegram_bot.send_document
data:
file: /media/snapshots/driveway_camera_alarm.jpg
caption: Driveway camera
- service: telegram_bot.send_document
data:
file: /media/snapshots/front_camera_alarm.jpg
caption: Front camera


EDIT: I see that Tapatalk stole all the spaces at the start of each line. Just ensure that your tabbing is aligned
 

AmazeBalls

Well-Known Member
Joined
Jul 13, 2013
Messages
132
Here's is an extract of my automation to send pictures together with a message. Check if you can get alignment with your script?


- service: camera.snapshot
target:
entity_id: camera.driveway_camera
data:
filename: /media/snapshots/driveway_camera_alarm.jpg
- service: camera.snapshot
target:
entity_id: camera.front_camera
data:
filename: /media/snapshots/front_camera_alarm.jpg
- service: telegram_bot.send_message
data:
title: Huis alarm
message: >-
Die huis alarm skreeu!!! ADT sal seker nou nou bel. Kyk wat wys op die
kameras.
- service: telegram_bot.send_document
data:
file: /media/snapshots/driveway_camera_alarm.jpg
caption: Driveway camera
- service: telegram_bot.send_document
data:
file: /media/snapshots/front_camera_alarm.jpg
caption: Front camera


EDIT: I see that Tapatalk stole all the spaces at the start of each line. Just ensure that your tabbing is aligned
Thanks, intersting by changing the config from
Code:
Telegram bot: Send photo
to
Code:
Telegram bot: Send document
it works 100%. Not ideal as the image loads as a doc rather than picture.
 

deesef

Expert Member
Joined
Mar 3, 2017
Messages
2,627
Thanks, intersting by changing the config from
Code:
Telegram bot: Send photo
to
Code:
Telegram bot: Send document
it works 100%. Not ideal as the image loads as a doc rather than picture.
Send_picture send a compressed version. Send_document send the full, uncompressed file, that makes it much easier to see the finer detail.
 

AmazeBalls

Well-Known Member
Joined
Jul 13, 2013
Messages
132
Send_picture send a compressed version. Send_document send the full, uncompressed file, that makes it much easier to see the finer detail.
got it wokring with send_picture as well. seems my URL was an issue as needed to use the take_snapshot first

Cant seem to find it now but saw somewhere they configured a button to refresh the snapshot in telegram. any ideas how to go about that? been looking into the inline keyboard but not so clear the action to refresh a snapshot
 

xrapidx

Honorary Master
Joined
Feb 16, 2007
Messages
40,308
What would cause something to drop off the network consistently (wifi)? (Broadlink RM Pro). Every hour to the minute for 5 minutes.


Capture.PNG
 
Top