Skip to content
Discussion options

You must be logged in to vote
@service
##Calls function to turn on dishwasher and start manually
def dishwasher_start_selection():
    #Grabs the states of the options and the user program selected
    extradry = state.get("switch.dishwasher_dishcare_dishwasher_option_extradry")
    hygplus = state.get("switch.dishwasher_dishcare_dishwasher_option_hygieneplus")
    speedperfect = state.get("switch.dishwasher_dishcare_dishwasher_option_variospeed")
    user_input = state.get("input_select.dishwasher_programs")
    
    #convert on/off states to correct JSON true/fase
    extradry = extradry == "on"
    hygplus = hygplus == "on"
    speedperfect = speedperfect == "on"

    log.info(extradry)
    log.info(hygplus)
    lo…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Steady183
Comment options

Comment options

You must be logged in to vote
2 replies
@Steady183
Comment options

@Steady183
Comment options

Answer selected by Steady183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants