Ups, no lo había subido todo
Vale, esto es lo que queda:
Ya lo he subido
¡Es realmente genial!
Solo falta una cosa, la gestión de las escenas.
Actualmente, el usuario debe conocer de memoria los valores enteros, hay que proponer un <select> en el disparador « Cambio de estado del dispositivo ».
Lo hacemos así aquí:
// the saved value only stays meaningful while the kind of feature is unchanged. In
// "any change" mode there is no value at all, and re-adding an empty one would break
// the trigger validation.
const featureKindChanged =
!firstFeature ||
!previousFeature ||
firstFeature.category !== previousFeature.category ||
firstFeature.type !== previousFeature.type;
if (featureKindChanged && (!this.isAnyStateChange() || leavingAnyStateChange)) {
this.props.updateTriggerProperty(this.props.index, 'value', null);
}
};
isAnyStateChange = () => this.props.trigger.operator === ANY_CHANGE_OPERATOR;
enableOrDisableAnyStateChange = e => {
if (e.target.checked) {
this.props.updateTriggerProperty(this.props.index, 'operator', ANY_CHANGE_OPERATOR);
// an "any change" trigger compares the new state with the previous one: there is no
// value to match, and neither the threshold nor the duration option applies to a
En mi opinión, hay que añadir un pequeño componente con un select y las 4 valores posibles.
Pero ¡enhorabuena!, esta PR es genial
¡Es perfecto! ¿Te parece bien si hago el merge?
¡Buen trabajo
Gracias. Sí, está bien para mí
Está disponible en Gladys Assistant 4.64:
Hola a todos,
Como sabéis, el objetivo en el lado de Matter es cubrir todos los tipos de dispositivos Matter, para hacer de esta integración la principal en Gladys.
Esta es mi visión: Matter es el futuro de la domótica.
Nuevas funcionalidades
Matter : se ha añadido el soporte para sensores de formaldehído (Formaldehyde) por @Nagromdark
Matter : se ha añadido el soporte para sensores de compuestos orgánicos volátiles (VOC) por @Nagromdark
Correcciones
Corrección del estado…
Gracias @Nagromdark