Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote transmitter is not working after update [1.15.3]->[1.16.0] #1828

Closed
mihing opened this issue Feb 9, 2021 · 20 comments
Closed

Remote transmitter is not working after update [1.15.3]->[1.16.0] #1828

mihing opened this issue Feb 9, 2021 · 20 comments

Comments

@mihing
Copy link

mihing commented Feb 9, 2021

Operating environment/Installation (Hass.io/Docker/pip/etc.):

Home Assistant OS 5.11

ESP (ESP32/ESP8266, Board/Sonoff):

ESP8266

ESPHome version (latest production, beta, dev branch)

1.16.0

Affected component:

https://esphome.io/components/remote_transmitter.html#remote-transmitter-transmit-rc-switch-raw-action

Description of problem:
After updating ESPHome to version 1.16.0, 433MHz transmitter stopped working.
The console looks like everything is ok, but the controlled devices stopped responding to commands.
I rolled back to version 1.15.3 and everything worked again.

Problem-relevant YAML-configuration entries:

esphome:
  name: nodemcuv3_rf433
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: !secret Wifi_SSID
  password: !secret Wifi_PWD
  fast_connect: on

logger:
      esp8266_store_log_strings_in_flash: false

api:
  password: !secret HassPass

ota:
  password: !secret HassPass

web_server:
  port: 80


remote_receiver:
  pin:
    number: D1
    #inverted: True
    #mode: INPUT_PULLUP
  dump:
    - rc_switch
  # Settings to optimize recognition of RF devices
  tolerance: 50%
  filter: 250us
  idle: 4ms
  buffer_size: 2kb
      
remote_transmitter:
  pin:
    number: D2
    #inverted: True
    #mode: INPUT_PULLUP
  # RF uses a 100% carrier signal
  carrier_duty_percent: 100%
  
switch:

  - platform: template
    name: "RF Power Socket 1"
    icon: "mdi:power-socket-de"
    id: RFSocket1
    
    turn_on_action:
      - remote_transmitter.transmit_rc_switch_raw:
          code: '101100000111110101011111'
          protocol: 1
          repeat:
            times: 5
            wait_time: 50ms
      - switch.template.publish:
          id: RFSocket1
          state: ON
    
    turn_off_action:
      - remote_transmitter.transmit_rc_switch_raw:
          code: '101100000111110101010111'
          protocol: 1
          repeat:
            times: 5
            wait_time: 50ms
      - switch.template.publish:
          id: RFSocket1
          state: OFF

Logs (if applicable):

No errors in log.

Additional information and things you've tried:

@lipiec2
Copy link

lipiec2 commented Feb 9, 2021

How to downgrade 1.16.0 --> 1.15.3?

@mihing
Copy link
Author

mihing commented Feb 9, 2021

How to downgrade 1.16.0 --> 1.15.3?

Supervisor, ESPHome, Configuration:
espv

Or, in YAML:
esphome_version: v1.15.3

@glmnet
Copy link
Member

glmnet commented Feb 10, 2021

Try decreasing the wait time from 50ms to 3ms or other values

@mihing
Copy link
Author

mihing commented Feb 10, 2021

Try decreasing the wait time from 50ms to 3ms or other values

3ms, 1ms, 10ms -- no effect.
Previously, devices worked the first time, I added "repeat..., times" for reliability.

@40pints
Copy link

40pints commented Feb 10, 2021

Having the same issue. I have noticed the log no longer states sending remote command when it should be transmitting

@probot-esphome
Copy link

@rradar rradar added the bug Something isn't working label Feb 10, 2021
@glmnet
Copy link
Member

glmnet commented Feb 10, 2021

Having the same issue. I have noticed the log no longer states sending remote command when it should be transmitting

can you post the log of both 1.15 and 1.16 for comparison? that will be very helpful if they are different

@DieKatzchen
Copy link

Seems to be the same issue I was having with #1673 except that my ESP8266 works fine and my ESP32 exhibits this behavior (the log not showing that a signal was ever sent)

@glmnet
Copy link
Member

glmnet commented Feb 11, 2021

I just ordered DT-BL10 devkits.. let's see

@DieKatzchen
Copy link

DieKatzchen commented Feb 11, 2021

As far as logs go, here's the relevant code:

remote_transmitter:
  pin:
    number: RX
    inverted: false
  # RF uses a 100% carrier signal
  carrier_duty_percent: 100%
  id: rf
  
switch:
  - platform: template
    name: Projector UP
    turn_on_action:
      - remote_transmitter.transmit_rc_switch_raw:
          code: '100010110010010110000010'
          protocol: 2
          repeat: 3
          transmitter_id: rf

Which when running on a generic esp8266 produces:

[20:15:16][D][switch:021]: 'Projector UP' Turning ON.
[20:15:16][D][remote_transmitter:066]: Sending remote code...

and on a generic ESP32 instead produces

[20:18:55][D][switch:021]: 'Projector UP' Turning ON.

[Edit] Fixed code blocks

@TRon993
Copy link

TRon993 commented Feb 15, 2021

Same for me. I`m using D1 Minis that used to work amazingly great until the upgrade today to 1.16.1. Also, reverting (downgrade) to 1.15.3 didnt work (no settings in Supervisor, changes in the config file are ignored as well). Couldnt find any hints regarding this component in the changelog. May this be related to the internal upgrades like plattform io or something like that?

Thanks for any hints on how to get it back working!

@franz82
Copy link

franz82 commented Feb 16, 2021

Same for me too. Shelly 1 v3 here.

  • Home Assistant OS 5.11 on RPI3b+
  • Core ver: 2021.2.3
  • Supervisor ver: supervisor-2021.02.9
  • ESPHome: 1.16.1

During source compiling I got this warning about SPIFFS deprecated:

    /data/shelly1_template/.piolibdeps/shelly1_template/ESPAsyncWebServer-esphome/src/SPIFFSEditor.h:16:101: warning: ‘SPIFFS’ is deprecated (declared at /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
    SPIFFSEditor(const String& username=String(), const String& password=String(), const fs::FS& fs=SPIFFS);
    ^

it could be the culprit?

@TRon993
Copy link

TRon993 commented Feb 16, 2021

Ok so, I've tried to downgrade to 1.15.3 (docker via supervisor installation) but couldn't get it working. I thought I've seen the possibility to chose a certain version but this seems to have changed since Nov/Dec I think. Even manually setting this value on options.json doesn't do anything (besides failing)...

Anyone any idea on how to downgrade to a working version? Can't believe that this seems to be Impossible.

Thanks in advance

@glmnet
Copy link
Member

glmnet commented Feb 16, 2021

I believe the issue should be either esphome/esphome#1465 or most likely esphome/esphome#1426

So you can test undoing those changes and see what happens.

I have some covers actuated by rc-switch and I don't see a problem here, all still works.

To proper fix this issue we have to line up with another implementation, if somebody would capture esphome outputs and compare with a known transmitter output that will be helpful to decide which is correct.

@TRon993
Copy link

TRon993 commented Feb 16, 2021

Thanks for the references. The upgrade by itself seems to be uncritical. What I did is to update all of my devices via "update all" function on the dashboard. I could see that a newer PlattformIO version was added as well as some of the components I'm using. I'm trying to clean up and recompile the firmware of my rf enabled device. All other devices are running as usual so far... Weird

Well... No success with that :/

@OkhammahkO
Copy link

OkhammahkO commented Feb 17, 2021

I think I'm having the same issue. I can't downgrade either.

Edit: This work around has got it working again for me.

switch:
  - platform: template
    name: "gtstat_01"
    id: "gtstat_01"
    optimistic: true
    assumed_state: true
    turn_on_action:
      remote_transmitter.transmit_rc_switch_raw:
        code: '100010001010101000000001'
        protocol: 
          pulse_length: 320
        repeat:
          times: 10
          wait_time: 0s

From here:
https://community.home-assistant.io/t/sonoff-rf-bridge-with-esphome/112676/177?u=mahko_mahko

@TRon993
Copy link

TRon993 commented Feb 17, 2021

Crazy... it seems to work.

Changed

- remote_transmitter.transmit_rc_switch_raw:
          code: '10100101011100001000100100000000'
          protocol: 2 
          repeat: 
            times: 3
            wait_time: 650us

to

- remote_transmitter.transmit_rc_switch_raw:
          code: '10100101011100001000100100000000'
          protocol: 2 
          repeat: 
            times: 10
            wait_time: 0s

Thanks a bunch for this solution. Nevertheless, i will be more cautious regarding updates in the future.

@mihing
Copy link
Author

mihing commented Feb 22, 2021

Crazy... it seems to work.

Yes!

Changed
wait_time: 50ms
to
wait_time: 0ms.
Its works!

(ESPHome 1.16.2)

@erkme73
Copy link

erkme73 commented May 14, 2021

Confirming that my RF Bridge also stopped working after 1.15.3, but setting wait_time to zero ms let me transmit again. Thanks for the workaround!

@stale
Copy link

stale bot commented Sep 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 11, 2021
@stale stale bot closed this as completed Sep 25, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants