added mosqit conf
This commit is contained in:
parent
34e8fc9388
commit
d45d7c4a8a
3 changed files with 911 additions and 5 deletions
|
@ -94,7 +94,8 @@ const roomStatus = reactive({
|
|||
const roomState = ref(0)
|
||||
// OFF -> 0; ON -> 1; IN BETWEEN -> 2
|
||||
|
||||
watch (roomStatus, (_oldState, _newState) => {
|
||||
watch (roomStatus, (_, _newState) => {
|
||||
if (!_newState) { return }
|
||||
let allOn = _newState.proj_power && _newState.platno_state == 'DOWN' && _newState.lift_state == 'DOWN'
|
||||
let allOff = !_newState.proj_power && _newState.platno_state == 'UP' && _newState.lift_state == 'UP'
|
||||
if (allOn) {
|
||||
|
@ -104,7 +105,7 @@ watch (roomStatus, (_oldState, _newState) => {
|
|||
} else {
|
||||
roomState.value = 2
|
||||
}
|
||||
})
|
||||
}, {immediate: true})
|
||||
|
||||
|
||||
</script>
|
||||
|
|
|
@ -13,9 +13,6 @@ const props = defineProps({
|
|||
const _glavni_position = ref('glavni')
|
||||
const _stranski_position = ref('stranski')
|
||||
|
||||
|
||||
let disableControl = false
|
||||
|
||||
let _glavni = ref('glavni')
|
||||
let _stranski = ref('stranski')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue