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

Magnet sensor: Cuando la puerta está cerrada muestra abierta y cuando está abierta aparece como cerrada. #299

Closed
benjaminmupe opened this issue Dec 9, 2021 · 8 comments
Labels
bug Something isn't working device: magnet fixed bug fixed

Comments

@benjaminmupe
Copy link

cuando la puerta está cerrada muestra abierta y cuando está abierta aparece como cerrada.
magnet_sensor when state is on = door open and when is off =close.

@al-one
Copy link
Owner

al-one commented Dec 9, 2021

What is your component version ? Maybe you should upgrade to the latest version.

@benjaminmupe
Copy link
Author

v04.12 aparece cambiado, he vuelto a instalar la v04.11 y me aparece bien.
A local magnet with zigbee2mqtt:
contact true = off - door closed
contact false = on - door open

@benjaminmupe
Copy link
Author

benjaminmupe commented Dec 9, 2021

Lo cerré sin querer.

V04.11 Door closed

entity: binary_sensor.lumi_v2_13cd_magnet_sensor
state: off

model: lumi.sensor_magnet.v2
lan_ip: ''
mac_address: lumi.158d00034313cd
firmware_version: ''
hardware_version: ''
entity_class: LumiBinarySensorEntity
miot_type: urn:miot-spec-v2:device:magnet-sensor:0000A016:lumi-v2:1
state_property: magnet_sensor.contact_state
magnet_sensor.contact_state: false
state_updater: cloud
trigger_type: event.close
trigger_time: 1639042706
trigger_at: '2021-12-09 10:38:26'
friendly_name: Puerta Piso Gateway
supported_features: 0
device_class: door

V0.4.11
Door Open

state: on

model: lumi.sensor_magnet.v2
lan_ip:
mac_address: lumi.158d00034313cd
firmware_version:
hardware_version:
entity_class: LumiBinarySensorEntity
miot_type: urn:miot-spec-v2:device:magnet-sensor:0000A016:lumi-v2:1
state_property: magnet_sensor.contact_state
magnet_sensor.contact_state: true
state_updater: cloud
trigger_type: event.open
trigger_time: 1639043974
trigger_at: 2021-12-09 10:59:34
friendly_name: Puerta Piso Gateway
supported_features: 0
device_class: door

@benjaminmupe
Copy link
Author

What is your component version ? Maybe you should upgrade to the latest version.

Creo que es porque recibo el estado del sensor cambiado
magnet_sensor.contact_state: false when it´s closed

V04.12
Door: Open

entity: binary_sensor.lumi_v2_13cd_magnet_sensor
state: off

model: lumi.sensor_magnet.v2
lan_ip: ''
mac_address: lumi.158d00034313cd
entity_class: LumiBinarySensorEntity
home_room: Casa Benjamín Entrada
miot_type: urn:miot-spec-v2:device:magnet-sensor:0000A016:lumi-v2:1
state_property: magnet_sensor.contact_state
magnet_sensor.contact_state: true
state_updater: cloud
trigger_type: event.open
trigger_time: 1639044699
trigger_at: '2021-12-09 11:11:39'
friendly_name: Puerta Piso Gateway
supported_features: 0
device_class: door

Door Closed

state: on

model: lumi.sensor_magnet.v2
lan_ip: ''
mac_address: lumi.158d00034313cd
entity_class: LumiBinarySensorEntity
home_room: Casa Benjamín Entrada
miot_type: urn:miot-spec-v2:device:magnet-sensor:0000A016:lumi-v2:1
state_property: magnet_sensor.contact_state
magnet_sensor.contact_state: false
state_updater: cloud
trigger_type: event.close
trigger_time: 1639045927
trigger_at: '2021-12-09 11:32:07'
friendly_name: Puerta Piso Gateway
supported_features: 0
device_class: door

@le8266
Copy link

le8266 commented Dec 9, 2021

Hi, I have currently the same problem. I use the newest version of the integration (0.4.12) and also the newest version of home assistant supervisor. I think the issue starts after the last integration update. Here you can see an entity state of the sensor:
image

@al-one al-one added the bug Something isn't working label Dec 9, 2021
@al-one
Copy link
Owner

al-one commented Dec 10, 2021

Fixed in 5cdb6fb , please upgrade to master branch and try again.

@le8266
Copy link

le8266 commented Dec 10, 2021

I updated to master and now it works again. Thanks. 👍

@benjaminmupe
Copy link
Author

Fixed in 5cdb6fb , please upgrade to master branch and try again.

Thank you!!
working again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working device: magnet fixed bug fixed
Projects
None yet
Development

No branches or pull requests

3 participants