<commit_before>/**
 *  StatusThing 
 *
 *  Author: <EMAIL>
 *  Date: 2013-11-01
 * 
 *  Download the Mac App at https://github.com/alexking/StatusThing
 *
 */
preferences {
    section("Settings") {
        input "switches", "capability.switch", title : "Switches", multiple : true, required : true
        input "temperatures", "capability.temperatureMeasurement", title : "Temperature", multiple : true, required : false
        input "thermostats", "capability.thermostat", title : "Thermostats", multiple : true, required : false

    }
}

mappings 
{
    path("/updateItemsAndTemperature") 
    {
        action : 
        [
            GET : "updateItemsAndTemperatures"
        ] 
    }
    
    path("/itemChangeToState/:id/:state")
    {
        action : 
        [
            GET : "itemChangeToState"
        ]
    }
}


def updateItemsAndTemperatures()
{
    def items = []
    for (item in switches)
    {
        items << [ 'id' : item.id , 'state' : item.currentValue('switch') ?: '' , 'name' : item.displayName ]
    }
<commit_msg>Changing stateless default to false instead of ""<commit_after>/**
 *  StatusThing 
 *
 *  Author: <EMAIL>
 *  Date: 2013-11-01
 * 
 *  Download the Mac App at https://github.com/alexking/StatusThing
 *
 */
preferences {
    section("Settings") {
        input "switches", "capability.switch", title : "Switches", multiple : true, required : true
        input "temperatures", "capability.temperatureMeasurement", title : "Temperature", multiple : true, required : false
        input "thermostats", "capability.thermostat", title : "Thermostats", multiple : true, required : false

    }
}

mappings 
{
    path("/updateItemsAndTemperature") 
    {
        action : 
        [
            GET : "updateItemsAndTemperatures"
        ] 
    }
    
    path("/itemChangeToState/:id/:state")
    {
        action : 
        [
            GET : "itemChangeToState"
        ]
    }
}


def updateItemsAndTemperatures()
{
    def items = []
    for (item in switches)
    {
        items << [ 'id' : item.id , 'state' : item.currentValue('switch') ?: false , 'name' : item.displayName ]
    }

{'fraction_non_alphanumeric': 0.1358313817330211, 'fraction_numerical': 0.007494145199063232, 'mean_word_length': 2.358490566037736, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1583801', 'n_tokens_mistral': 688, 'n_tokens_neox': 655, 'n_words': 138}