dbuezas / esphome-cc1101

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Sensor Component to External Components.

erwan33fr opened this issue · comments

Hello,

Would it be possible to move from "Custom Sensor Component" to "External Components" ?

https://esphome.io/components/sensor/custom.html

Custom components are deprecated, not recommended for new configurations and will be removed from ESPHome in a future release.

Best regards,
Erwan

Oh, good that they are deprecating it. I'll do that when I update my own board. Thanks for the heads up

Working on it! If anyone wants to test it, it's in my fork.

https://github.com/gabest11/esphome-cc1101

Working on it! If anyone wants to test it, it's in my fork.

https://github.com/gabest11/esphome-cc1101

Your code was working fine until I upgraded to ESPHome 2024.5.0 today.... now I'm getting :

[E][component:082]: Component cc1101.sensor is marked FAILED

Any idea on what seems to be incompatible in your code with latest release of ESPHome?

I don't know, haven't upgraded yet. Can you test the latest version? I moved it to a top level component, as they suggested in the pull request to me. https://github.com/gabest11/esphome/tree/cc1101/esphome/components/cc1101
docs:
https://deploy-preview-3649--esphome.netlify.app/components/cc1101.html?highlight=cc1101

The pull request will probably never be approved, as the device cannot independently send and receive, and it needs that hack to switch direction.

Try the new cc1101 and yaml files. GDO2 not necessary in esp32 anymore and it works on latest esphome