 
                
                  Add a database of your MySQL compatible server as device to homey. 
Use a flow card in the THEN part to execute a SQL query. Push sensor data to a database table if you want to log it.
Execute SELECT statements in the flow card to read data from your database.
React on the executed query in with a flow trigger and push the value to a virtual sensor.
                  
                    
                      Read more ›
                    
                  
                 
               
              
              
              
              
              
              
                
              
              
              
              
                
                  Flow cards
                  
                    Click on a device above to show related Flow cards only.
                  
                  
                    
                      When...
                      
                        
                          
                            
                              
                              
                                Database
                                The SQL POST query (insert/update) was executed with id Query ID.
                               
                              
                                
                              
                              
                             
                           
                        
                          
                            
                              
                              
                                Database
                                The SQL query was executed with id Query ID.
                               
                              
                                
                              
                              
                             
                           
                        
                       
                    
                      And...
                      
                        
                          
                            
                              
                              
                                Database
                                The result (as number) of SQL query SQL query with ID ID is ...
                               
                              
                                
                              
                              
                             
                           
                        
                          
                            
                              
                              
                                Database
                                The result (as number) of SQL query SQL query with ID ID is greater than ...
                               
                              
                                
                              
                              
                             
                           
                        
                          
                            
                              
                              
                                Database
                                The result (as text) of SQL query SQL query with ID ID is ...
                               
                              
                                
                              
                              
                             
                           
                        
                          
                            
                              
                              
                                Database
                                The SQL query SQL query with ID ID was processed successfully
                               
                              
                                
                              
                              
                             
                           
                        
                       
                    
                      Then...
                      
                        
                          
                            
                              
                              
                                Database
                                Executes the SQL query with ID ID: SQL query.
                               
                              
                                
                              
                              
                                
                                  Advanced
                                
                              
                             
                           
                        
                          
                            
                              
                              
                                Database
                                Executes the SQL query with ID ID: SQL query.
                               
                              
                                
                              
                              
                             
                           
                        
                       
                    
                   
                 
              
              
              
              
              
              
              
              
              
              
                What’s new
                Version 1.0.7 — Fixed connection closing in pair view.
                
                  View changelog