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

Missing "val_tpl" on create discovery switch provided by RF #939

Closed
Odyno opened this issue May 7, 2021 · 1 comment
Closed

Missing "val_tpl" on create discovery switch provided by RF #939

Odyno opened this issue May 7, 2021 · 1 comment
Labels

Comments

@Odyno
Copy link
Contributor

Odyno commented May 7, 2021

Describe the bug
on Home Assistant the switch created by discovery process is present but the state is blocked

Environment:

  • I have a Digoo Pir sersor that send messages to OMG
  • OMG is built with '-DZgatewayRF="RF"' and '-DZmqttDiscovery="HADiscovery"' on development branch
  • the board is esp32dev
  • the message is received by OMG and sent to MQTT broker
  • on Home Assistant the switch is present but the state is blocked

Expected behavior
Change the state to "on" in Home Assistant foreach revelation

Bug Analysis
The published message has the format "C" but the configuration provided by OMG (A) has no val_tpl field (B), so the pl_on can never match

Screenshot 2021-05-07 at 02 04 11

@stale
Copy link

stale bot commented Jul 21, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant