This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# TODO specify your binding id (e.g. bindingId="openweathermap") | |
bindingId="openweathermap" | |
i18nPath="src/main/resources/OH-INF/i18n" | |
rm -f $i18nPath/tmp_$bindingId.properties | |
# generate translation properties | |
mvn xml:transform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Switch proxySwitch "I am ... [MAP(sleeping.map):%s]" | |
Number proxyNumber "Probability [%.5f %%]" | |
Group gBAYESIAN "Bayesian Sleep Sensor" { | |
bayesian="proxySwitch" [ prior=0.5, threshold=0.85, state_given_true="ON", state_given_false="OFF" ] | |
} | |
Switch testSwitch1 "I am at home ... [MAP(yes-no.map):%s]" <presence> (gBAYESIAN) { | |
bayesian="ON" [ prob_given_true=0.99, prob_given_false=0.5 ] | |
} |