     :else :night))
 
 
-(defn time-sm [state day-fn! night-fn!]
+(defn time-sm [component state day-fn! night-fn!]
   (let [dusk 0.03
         dawn 0.13]
     {:state state

              (if (< brightness dusk)
                ; state side effects
                (do
                  (notify ::info "Switching from day to night and running evening routine")
                  (night-fn!)
                  :night)
                ; Don't change anything

              (if (> brightness dawn)
                ; state side effects
                (do
                  (notify component ::info "Switching from night to day and running morning routine")
                  (day-fn!)
                  :day)
                ; Don't change anything
