RFXcom adds it as a lightning device: so a switch: on or off.
I know this device sends a “groupon” command since it triggers multiple chimes.
Any idea how i get this to work? A simple on or off command wont do the trick.
I’ve had the same issue with domoticz, but there if have the options to send a "groupon"command.
Uhm button or switch i guess? Now it adds it as a switch. But there really is no ‘on’ or ‘off’ right? Does HA hass the option for a button? So just “activate”? I want to be able to trigger it for testing. Eventually it should run a script if the doorbell is pressed.
alias: Notify when doors open
trigger:
platform: state
entity_id: group.deuren
from: 'off'
to: 'on'
condition:
condition: state
entity_id: input_boolean.notify_doors
state: 'on'
action:
- service: notify.telegram_koen
data:
title: ''
message: Deur open!
- service: homeassistant.turn_on
entity_id: switch.waarschuwing
- delay: 0:10
- service: homeassistant.turn_off
entity_id: switch.waarschuwing
note: i have my automations in separate files and include the whole directory in the configuration.yaml so my indentations won’t work in a standard configuration.yaml (i think).
Ok tnx will give it a try. But if I look at your configuration it mainly covers the automation part (which is nice to have, so I don’t need to figure it out myself any more .
But…does this cover the issue with the GROUP ON command.? My doorbell doesn’t work with a “on” or “off” command. So if I add my doorbell as a switch and I turn it on, it should send a command "group on"instead of “on”. Otherwise my chimes won’t ring. Not sure if the rfxtrx component knows this command.
HA autoadds the doorbell, so I wonder how it interprets the signal it recieves. If I press the doorbell the first time, it autoadds a switch, because it recieves a rfxtrx event. If I trigger that switch from the GUI nothing happens. This is, I think, because it sends the wrong command.
Just one thing about the telegram notifier: What to use as API key?
I’ve always used curl for sending telegram notification with my bot.
The string in the URL is: botxxxxx:APIKEY-wm
I copied the entire string now, because in the telegram configuration there really is no place to set the botid.
But this somehow doesn;t seem to work:
File "/volume1/homeassistant/deps/telegram/bot.py", line 51, in __init__ File "/volume1/homeassistant/deps/telegram/bot.py", line 75, in _validate_token
When I click the physical doorbell I get to see a notification as expected, but when I use the switch in the HA UI nothing happens. No rfxtrx event is fired, it seems. Do you know why and/or how to make it work?
Had the same. I added a separate switch in HA with another unit code that I learned on the receiver.
This way you can ring the bell only when you want.
Receive the knob code with HA. Do some logic/automation and send the other code to the receiver , or don’t and send a telegram message or flash a light when the kids are in bed…
You don’t learn the actual knob code on the chime part, only in HA.
The bell is used for a ‘mess call’ to alert my kid to come downstairs for dinner.
Since mostly he is gaming with headphones on, I will also launch a big red light in front of his face (behind his monitor)
I have a kaku remote with 3 on/off buttons and 1 all off button. What I want is to catch the event of that last button. I want it to strat a scene that switches off all light in the living room, including hue.
This is the current config, where the door bell event is catched, but the all off remote button isn’t.
What I noticed is, that the all off id 0b11000f00bb136201030070 looks similar to that of button 1 0b11001000bb136201010f60 , so the switch.kaku_remote_all_off sensor is not created.
I have the doorbell working but the problem is that i do get the telegram message 6 times every time the button is pressed.
This is a bit to much but i can not find how to fix it
This the automation i used
- alias: deur bel
initial_state: 'on'
trigger:
platform: event
event_type: button_pressed
event_data: {"entity_id": "switch.deur_bel"}
action:
- service: notify.telegram_gijs
data:
message: Er staat iemand aan de deur
data:
photo:
- url: http://my-camera-ip/image.jpg
This is the switch
- platform: rfxtrx
devices:
0b1100000154843a01040f60:
name: Deur Bel
fire_event: True