Fixed mmWave

This commit is contained in:
Joshua Glemza
2024-01-15 20:30:04 -05:00
committed by GitHub
parent 98b10c08cc
commit 86c593aba0

View File

@@ -1,6 +1,6 @@
/** /**
* MIT License * MIT License
* Copyright 2022 Jonathan Bradshaw (jb@nrgup.net) * Copyright 2022 Joshua Glemza
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -194,7 +194,7 @@ void parseState(final Map message) {
updateAttribute('illuminance', message.state as Integer, 'lx') updateAttribute('illuminance', message.state as Integer, 'lx')
} }
break break
case state.entities['mmwave']: case state.entities['mmwave_switch']:
// Millimeter wave radar sensor // Millimeter wave radar sensor
if (message.hasState) { if (message.hasState) {
updateAttribute('mmwave', message.state ? 'active' : 'inactive') updateAttribute('mmwave', message.state ? 'active' : 'inactive')