I attempted to control my RF433 remote and obtained data using an RC switch. To operate the switch, I discovered that I needed to set the pulse length to 187. The switch doesn’t work if I do not assign for a certain pulse length. I was wondering what the configuration template has to be in configuration.yaml to set the specific pulse length. Thank you.
This is my configuration. yaml
mqtt:
switch:
name: ZAP_2
state_topic: “home/OpenMQTTGateway/MQTTto433”
command_topic: “home/OpenMQTTGateway/MQTTto433”
value_template: “{{ value_json.value }}”
payload_on: ‘{“value”:349491}’
payload_off: ‘{“value”:349500}’
state_on: 349491
state_off: 349500
qos: “0”
retain: true
Thank you so much for the information.
I tried to use the delay but had no luck. RC-switch works really well. I don’t if I made some mistake in my yaml file. Thanks.
The template seems to be right, are you sure about the parameters?
If in doubt about any parameter to be sent, I used this technique to clone the original: I suggest you generate the real signal by pointing it at OMG and see what the RF receiver captures in the 433toMqtt topic
I used this technique to copy the original signal, get full signal raw data and also capture the exact delay to use.
After that (in my case I want to manage it via HA) I created a fake device via automation and injected it via MQTT discovery (check out the second script on Problem understanding HA integration - #3 by odyno) and finally I have a device full managed without any compatibility problem.