mirror of
https://github.com/home-assistant/core.git
synced 2026-08-07 13:55:32 +01:00
89 lines
3.2 KiB
JSON
89 lines
3.2 KiB
JSON
{
|
|
"conditions": {
|
|
"is_phase": {
|
|
"description": "Tests if the moon is in a specific phase.",
|
|
"fields": {
|
|
"phase": {
|
|
"description": "The moon phase to test for.",
|
|
"name": "Phase"
|
|
}
|
|
},
|
|
"name": "Moon phase"
|
|
},
|
|
"is_waning": {
|
|
"description": "Tests if the moon is waning.",
|
|
"name": "Moon is waning"
|
|
},
|
|
"is_waxing": {
|
|
"description": "Tests if the moon is waxing.",
|
|
"name": "Moon is waxing"
|
|
}
|
|
},
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"description": "[%key:common::config_flow::description::confirm_setup%]"
|
|
}
|
|
}
|
|
},
|
|
"entity": {
|
|
"sensor": {
|
|
"phase": {
|
|
"name": "Phase",
|
|
"state": {
|
|
"first_quarter": "First quarter",
|
|
"full_moon": "Full moon",
|
|
"last_quarter": "Last quarter",
|
|
"new_moon": "New moon",
|
|
"waning_crescent": "Waning crescent",
|
|
"waning_gibbous": "Waning gibbous",
|
|
"waxing_crescent": "Waxing crescent",
|
|
"waxing_gibbous": "Waxing gibbous"
|
|
},
|
|
"state_attributes": {
|
|
"options": {
|
|
"state": {
|
|
"first_quarter": "[%key:component::moon::entity::sensor::phase::state::first_quarter%]",
|
|
"full_moon": "[%key:component::moon::entity::sensor::phase::state::full_moon%]",
|
|
"last_quarter": "[%key:component::moon::entity::sensor::phase::state::last_quarter%]",
|
|
"new_moon": "[%key:component::moon::entity::sensor::phase::state::new_moon%]",
|
|
"waning_crescent": "[%key:component::moon::entity::sensor::phase::state::waning_crescent%]",
|
|
"waning_gibbous": "[%key:component::moon::entity::sensor::phase::state::waning_gibbous%]",
|
|
"waxing_crescent": "[%key:component::moon::entity::sensor::phase::state::waxing_crescent%]",
|
|
"waxing_gibbous": "[%key:component::moon::entity::sensor::phase::state::waxing_gibbous%]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"selector": {
|
|
"phase": {
|
|
"options": {
|
|
"any": "Any",
|
|
"first_quarter": "[%key:component::moon::entity::sensor::phase::state::first_quarter%]",
|
|
"full_moon": "[%key:component::moon::entity::sensor::phase::state::full_moon%]",
|
|
"last_quarter": "[%key:component::moon::entity::sensor::phase::state::last_quarter%]",
|
|
"new_moon": "[%key:component::moon::entity::sensor::phase::state::new_moon%]",
|
|
"waning_crescent": "[%key:component::moon::entity::sensor::phase::state::waning_crescent%]",
|
|
"waning_gibbous": "[%key:component::moon::entity::sensor::phase::state::waning_gibbous%]",
|
|
"waxing_crescent": "[%key:component::moon::entity::sensor::phase::state::waxing_crescent%]",
|
|
"waxing_gibbous": "[%key:component::moon::entity::sensor::phase::state::waxing_gibbous%]"
|
|
}
|
|
}
|
|
},
|
|
"title": "Moon",
|
|
"triggers": {
|
|
"phase_changed": {
|
|
"description": "Triggers when the moon enters a new phase.",
|
|
"fields": {
|
|
"phase": {
|
|
"description": "Limit the trigger to a specific moon phase, or leave as Any to trigger on every phase change.",
|
|
"name": "Phase"
|
|
}
|
|
},
|
|
"name": "Moon phase changed"
|
|
}
|
|
}
|
|
}
|