About this query
Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.
Developer info
- Description
- This query returns a list of when your device player's state changes to the value you specified.
- API endpoint slug
- hager_iot.history_of_player_state_changes
- Runtime method
- performQuery("hager_iot.history_of_player_state_changes")
Query fields
Cid Dropdown list
- Label
- Which device?
- Slug
- cid
- Required
- true
- Can have default value
- false
Playerstate Dropdown list
- Label
- What player state?
- Slug
- playerstate
- Required
- true
- Can have default value
- true
Ingredients
Created atDate and time event was created.
- Slug
- created_at
- Filter code
- HagerIot.historyOfPlayerStateChanges.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
NameThe name of the device.
- Slug
- name
- Filter code
- HagerIot.historyOfPlayerStateChanges.Name
- Type
- String
- Example
- My Device
System serial numberThe system serial number.
- Slug
- sid
- Filter code
- HagerIot.historyOfPlayerStateChanges.SystemSerialNumber
- Type
- String
- Example
- HGR12345678901234567890
System nameThe system name.
- Slug
- systemName
- Filter code
- HagerIot.historyOfPlayerStateChanges.SystemName
- Type
- String
- Example
- My System
Player stateThe current player state.
- Slug
- playerstate
- Filter code
- HagerIot.historyOfPlayerStateChanges.PlayerState
- Type
- String
- Example
- Playing
SourceThe current source.
- Slug
- source
- Filter code
- HagerIot.historyOfPlayerStateChanges.Source
- Type
- String
- Example
- Stream
TracksNumber of tracks in queue.
- Slug
- tracks
- Filter code
- HagerIot.historyOfPlayerStateChanges.Tracks
- Type
- String
- Example
- 20
IndexCurrent queue index number.
- Slug
- index
- Filter code
- HagerIot.historyOfPlayerStateChanges.Index
- Type
- String
- Example
- 3
TitleThe current title name.
- Slug
- title
- Filter code
- HagerIot.historyOfPlayerStateChanges.Title
- Type
- String
- Example
- T.N.T.
ArtistThe current artist name.
- Slug
- artist
- Filter code
- HagerIot.historyOfPlayerStateChanges.Artist
- Type
- String
- Example
- AC/DC
AlbumThe current album name.
- Slug
- album
- Filter code
- HagerIot.historyOfPlayerStateChanges.Album
- Type
- String
- Example
- High Voltage